I have an app that i am developing, it access a website via HttpWebRequest
and HttpWebResponse classes (eg http://thaynann.com/images/) and at the
moment i am able to save all the image files from this page (by grabbing
their URLs and calling WebClient.Downl oadData() and save them to my PC), wat
i need to do is to be able to have the applicaiton automatically move to the
next page of images (the issue is that the next page doesnt appear to have
its own URL, it stays at http://thaynann.com/images) and grab the new page of
images and repeat the process to save them.
I have tried lookin at the request and responses that are being used (via
TcpTrace.exe), but i havent had any exp in JavaScript and minimal in HTML
itself, so i get quite lost looking through lines and lines of it
If anyone can help with my problem, that would be much appreciated.
PS, the website isnt real: just used as example
thaynann, 6 1888
Hi,
Most probably the url for the next page is in either a hidden tag, or
embedded in the href of a link , you don't need to use tcptrace, just
analize the page you get,
A tip, using IE get two consecutives pages, save them both ( just the html )
and using diff.exe you may be able to see the parameters being passed.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:BC******** *************** ***********@mic rosoft.com... I have an app that i am developing, it access a website via HttpWebRequest and HttpWebResponse classes (eg http://thaynann.com/images/) and at the moment i am able to save all the image files from this page (by grabbing their URLs and calling WebClient.Downl oadData() and save them to my PC), wat i need to do is to be able to have the applicaiton automatically move to the next page of images (the issue is that the next page doesnt appear to have its own URL, it stays at http://thaynann.com/images) and grab the new page of images and repeat the process to save them.
I have tried lookin at the request and responses that are being used (via TcpTrace.exe), but i havent had any exp in JavaScript and minimal in HTML itself, so i get quite lost looking through lines and lines of it
If anyone can help with my problem, that would be much appreciated.
PS, the website isnt real: just used as example
thaynann,
Thanx for the reply,
I did wat u suggested and saved 2 consecutve pages through IE, the only
problem i had was, when i saved the html docs (of page 1 and 2), i re-opened
them, and both were of page 1 again, so that leads me to belive that changin
pages would probably be controlled by a JavaScript method somewhere in the
HTML code, i did find a method, (that also appears on the status bar when
then change page button is mouseover (ie...javascrip t::ChengePage(3 ,
Document.Docbox ListForm) ), this method is the exact same for all pages, the
3 value does not change, nor does the document one), im not sure if posting
this will be any further help, but it cant hurt to try.
Thanx for your help so far Ignacio.
thaynann
"Ignacio Machin ( .NET/ C# MVP )" wrote: Hi,
Most probably the url for the next page is in either a hidden tag, or embedded in the href of a link , you don't need to use tcptrace, just analize the page you get, A tip, using IE get two consecutives pages, save them both ( just the html ) and using diff.exe you may be able to see the parameters being passed.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:BC******** *************** ***********@mic rosoft.com...I have an app that i am developing, it access a website via HttpWebRequest and HttpWebResponse classes (eg http://thaynann.com/images/) and at the moment i am able to save all the image files from this page (by grabbing their URLs and calling WebClient.Downl oadData() and save them to my PC), wat i need to do is to be able to have the applicaiton automatically move to the next page of images (the issue is that the next page doesnt appear to have its own URL, it stays at http://thaynann.com/images) and grab the new page of images and repeat the process to save them.
I have tried lookin at the request and responses that are being used (via TcpTrace.exe), but i havent had any exp in JavaScript and minimal in HTML itself, so i get quite lost looking through lines and lines of it
If anyone can help with my problem, that would be much appreciated.
PS, the website isnt real: just used as example
thaynann,
not having much experience in programming with web ascepts....does it matter
that the we files are .CGI files...ie http://thaynann.com/DocList.cgi
"Ignacio Machin ( .NET/ C# MVP )" wrote: Hi,
Most probably the url for the next page is in either a hidden tag, or embedded in the href of a link , you don't need to use tcptrace, just analize the page you get, A tip, using IE get two consecutives pages, save them both ( just the html ) and using diff.exe you may be able to see the parameters being passed.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:BC******** *************** ***********@mic rosoft.com...I have an app that i am developing, it access a website via HttpWebRequest and HttpWebResponse classes (eg http://thaynann.com/images/) and at the moment i am able to save all the image files from this page (by grabbing their URLs and calling WebClient.Downl oadData() and save them to my PC), wat i need to do is to be able to have the applicaiton automatically move to the next page of images (the issue is that the next page doesnt appear to have its own URL, it stays at http://thaynann.com/images) and grab the new page of images and repeat the process to save them.
I have tried lookin at the request and responses that are being used (via TcpTrace.exe), but i havent had any exp in JavaScript and minimal in HTML itself, so i get quite lost looking through lines and lines of it
If anyone can help with my problem, that would be much appreciated.
PS, the website isnt real: just used as example
thaynann,
Hi,
It does depend of how they did it.
without seen the code of the page (and even so) you can only guess, maybe
the keep in session a "current page" number, then in the html you have a
"back" and "next" which depending of which one is used post the correct
page.
what does the ChangePage method does?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:92******** *************** ***********@mic rosoft.com... Thanx for the reply,
I did wat u suggested and saved 2 consecutve pages through IE, the only problem i had was, when i saved the html docs (of page 1 and 2), i re-opened them, and both were of page 1 again, so that leads me to belive that changin pages would probably be controlled by a JavaScript method somewhere in the HTML code, i did find a method, (that also appears on the status bar when then change page button is mouseover (ie...javascrip t::ChengePage(3 , Document.Docbox ListForm) ), this method is the exact same for all pages, the 3 value does not change, nor does the document one), im not sure if posting this will be any further help, but it cant hurt to try.
Thanx for your help so far Ignacio.
thaynann
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Most probably the url for the next page is in either a hidden tag, or embedded in the href of a link , you don't need to use tcptrace, just analize the page you get, A tip, using IE get two consecutives pages, save them both ( just the html ) and using diff.exe you may be able to see the parameters being passed.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:BC******** *************** ***********@mic rosoft.com... >I have an app that i am developing, it access a website via >HttpWebReque st > and HttpWebResponse classes (eg http://thaynann.com/images/) and at the > moment i am able to save all the image files from this page (by > grabbing > their URLs and calling WebClient.Downl oadData() and save them to my > PC), > wat > i need to do is to be able to have the applicaiton automatically move > to > the > next page of images (the issue is that the next page doesnt appear to > have > its own URL, it stays at http://thaynann.com/images) and grab the new > page > of > images and repeat the process to save them. > > I have tried lookin at the request and responses that are being used > (via > TcpTrace.exe), but i havent had any exp in JavaScript and minimal in > HTML > itself, so i get quite lost looking through lines and lines of it > > If anyone can help with my problem, that would be much appreciated. > > PS, the website isnt real: just used as example > > thaynann,
Firstly, sorry it took so long for me to reple to this, been off work for a bit
here is teh code for ChangePage() (i didnt write this, i just pulled it out
of files when i ran TcpTrace, it was written by the company who made my fax
machine)
function ChengePage(kind ,win) //kind =3, win = document.Doxbox ListForm
{
var i;var workInt;var offset;var totalDoc;var BlockSize;var newOffset;
for (i = 0; i < win.length; i++)
{
if(win.elements[i].name == "resultRowBlock Size")
BlockSize = win.elements[i].value;
if(win.elements[i].name == "totalCount ")
totalDoc = win.elements[i].value;
if(win.elements[i].name == "offset")
offset = win.elements[i].value;
}
switch( kind )
{
case 1:
newOffset = 0;break;
case 2:
workInt = (offset - 0) - BlockSize;
if( workInt < 0 ) newOffset = 0;
else newOffset = workInt;break;
case 3:
workInt = (offset - 0) + (BlockSize -0);
if( totalDoc < workInt )
{
for( i=1; ;i++ )
{
workInt = 0;
workInt = (offset - 0) - (BlockSize * i);
if( totalDoc > workInt )
newOffset = workInt;break;
}
}
if( totalDoc == workInt ) newOffset = totalDoc - BlockSize;
else newOffset = workInt;break;
case 4:
for( i=1; ;i++)
{
workInt = 0;
workInt = (offset - 0) + (BlockSize * i);
if( totalDoc == workInt )
newOffset = totalDoc - BlockSize;break ;
else if( totalDoc < workInt )
newOffset = workInt - BlockSize;break ;
else;
}break;
default:
alert(" ***** parameter err ***** ");break;
}
for (i = 0; i < win.length; i++)
{
if (win.elements[i].type == "hidden")
if(win.elements[i].name == "offset")
win.elements[i].value = newOffset;
}
DocumentBoxForm Submit( 3, win );
}
"Ignacio Machin ( .NET/ C# MVP )" wrote: Hi,
It does depend of how they did it.
without seen the code of the page (and even so) you can only guess, maybe the keep in session a "current page" number, then in the html you have a "back" and "next" which depending of which one is used post the correct page.
what does the ChangePage method does?
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:92******** *************** ***********@mic rosoft.com... Thanx for the reply,
I did wat u suggested and saved 2 consecutve pages through IE, the only problem i had was, when i saved the html docs (of page 1 and 2), i re-opened them, and both were of page 1 again, so that leads me to belive that changin pages would probably be controlled by a JavaScript method somewhere in the HTML code, i did find a method, (that also appears on the status bar when then change page button is mouseover (ie...javascrip t::ChengePage(3 , Document.Docbox ListForm) ), this method is the exact same for all pages, the 3 value does not change, nor does the document one), im not sure if posting this will be any further help, but it cant hurt to try.
Thanx for your help so far Ignacio.
thaynann
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Most probably the url for the next page is in either a hidden tag, or embedded in the href of a link , you don't need to use tcptrace, just analize the page you get, A tip, using IE get two consecutives pages, save them both ( just the html ) and using diff.exe you may be able to see the parameters being passed.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:BC******** *************** ***********@mic rosoft.com... >I have an app that i am developing, it access a website via >HttpWebReque st > and HttpWebResponse classes (eg http://thaynann.com/images/) and at the > moment i am able to save all the image files from this page (by > grabbing > their URLs and calling WebClient.Downl oadData() and save them to my > PC), > wat > i need to do is to be able to have the applicaiton automatically move > to > the > next page of images (the issue is that the next page doesnt appear to > have > its own URL, it stays at http://thaynann.com/images) and grab the new > page > of > images and repeat the process to save them. > > I have tried lookin at the request and responses that are being used > (via > TcpTrace.exe), but i havent had any exp in JavaScript and minimal in > HTML > itself, so i get quite lost looking through lines and lines of it > > If anyone can help with my problem, that would be much appreciated. > > PS, the website isnt real: just used as example > > thaynann,
Hi,
Where is the code for the function DocumentBoxForm Submit ?
I think that the key here is a <input type=hidden name=offset> , the
function you shown seems to calculate if you need to move to another page,
if so it update the offset indicator and call later this other
DocumentBoxForm Submit function, what I have no idea what it does :)
put an alert before submit the page and see the value of offset
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message
news:99******** *************** ***********@mic rosoft.com... Firstly, sorry it took so long for me to reple to this, been off work for a bit
here is teh code for ChangePage() (i didnt write this, i just pulled it out of files when i ran TcpTrace, it was written by the company who made my fax machine)
function ChengePage(kind ,win) //kind =3, win = document.Doxbox ListForm { var i;var workInt;var offset;var totalDoc;var BlockSize;var newOffset;
for (i = 0; i < win.length; i++) { if(win.elements[i].name == "resultRowBlock Size") BlockSize = win.elements[i].value; if(win.elements[i].name == "totalCount ") totalDoc = win.elements[i].value; if(win.elements[i].name == "offset") offset = win.elements[i].value; } switch( kind ) { case 1: newOffset = 0;break; case 2: workInt = (offset - 0) - BlockSize; if( workInt < 0 ) newOffset = 0; else newOffset = workInt;break; case 3: workInt = (offset - 0) + (BlockSize -0); if( totalDoc < workInt ) { for( i=1; ;i++ ) { workInt = 0; workInt = (offset - 0) - (BlockSize * i); if( totalDoc > workInt ) newOffset = workInt;break; } } if( totalDoc == workInt ) newOffset = totalDoc - BlockSize; else newOffset = workInt;break; case 4: for( i=1; ;i++) { workInt = 0; workInt = (offset - 0) + (BlockSize * i); if( totalDoc == workInt ) newOffset = totalDoc - BlockSize;break ; else if( totalDoc < workInt ) newOffset = workInt - BlockSize;break ; else; }break; default: alert(" ***** parameter err ***** ");break; } for (i = 0; i < win.length; i++) { if (win.elements[i].type == "hidden") if(win.elements[i].name == "offset") win.elements[i].value = newOffset; } DocumentBoxForm Submit( 3, win ); }
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
It does depend of how they did it.
without seen the code of the page (and even so) you can only guess, maybe the keep in session a "current page" number, then in the html you have a "back" and "next" which depending of which one is used post the correct page.
what does the ChangePage method does?
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation
"Thaynann" <Th******@discu ssions.microsof t.com> wrote in message news:92******** *************** ***********@mic rosoft.com... > Thanx for the reply, > > I did wat u suggested and saved 2 consecutve pages through IE, the only > problem i had was, when i saved the html docs (of page 1 and 2), i > re-opened > them, and both were of page 1 again, so that leads me to belive that > changin > pages would probably be controlled by a JavaScript method somewhere in > the > HTML code, i did find a method, (that also appears on the status bar > when > then change page button is mouseover (ie...javascrip t::ChengePage(3 , > Document.Docbox ListForm) ), this method is the exact same for all > pages, > the > 3 value does not change, nor does the document one), im not sure if > posting > this will be any further help, but it cant hurt to try. > > Thanx for your help so far Ignacio. > > thaynann > > "Ignacio Machin ( .NET/ C# MVP )" wrote: > >> Hi, >> >> Most probably the url for the next page is in either a hidden tag, or >> embedded in the href of a link , you don't need to use tcptrace, just >> analize the page you get, >> A tip, using IE get two consecutives pages, save them both ( just the >> html ) >> and using diff.exe you may be able to see the parameters being passed. >> >> >> cheers, >> >> -- >> Ignacio Machin, >> ignacio.machin AT dot.state.fl.us >> Florida Department Of Transportation >> >> >> >> "Thaynann" <Th******@discu ssions.microsof t.com> wrote in message >> news:BC******** *************** ***********@mic rosoft.com... >> >I have an app that i am developing, it access a website via >> >HttpWebReque st >> > and HttpWebResponse classes (eg http://thaynann.com/images/) and at >> > the >> > moment i am able to save all the image files from this page (by >> > grabbing >> > their URLs and calling WebClient.Downl oadData() and save them to my >> > PC), >> > wat >> > i need to do is to be able to have the applicaiton automatically >> > move >> > to >> > the >> > next page of images (the issue is that the next page doesnt appear >> > to >> > have >> > its own URL, it stays at http://thaynann.com/images) and grab the >> > new >> > page >> > of >> > images and repeat the process to save them. >> > >> > I have tried lookin at the request and responses that are being used >> > (via >> > TcpTrace.exe), but i havent had any exp in JavaScript and minimal in >> > HTML >> > itself, so i get quite lost looking through lines and lines of it >> > >> > If anyone can help with my problem, that would be much appreciated. >> > >> > PS, the website isnt real: just used as example >> > >> > thaynann, >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: François de Dardel |
last post by:
I have a complete Intranet site with about 140 pages using Verdana as
the basic font.
How do I place a table (12 columns) with Arial instead of Verdana, only
for that table. I have defined a style in my CSS and tried to apply it
to the table, doesn't work. I have tried to wrap the table in a div
with the style. Doesn't work. I have tried the old-fashioned <font>
tag, doesn't work. I must be doing something wrong.
It works however if I...
|
by: Frostillicus |
last post by:
Hi,
I've written some javascript to randomly choose a classical music composer's
picture and sample audio and display it on my home page
(http://marc.fearby.com/), and this works fine in Mozilla but has problems
in IE. Here's the code:
imagestring = "<img src=\"" + imagedir + composers + "\" />";
objimage.innerHTML = imagestring;
|
by: Stefan Finzel |
last post by:
Hi,
is there a way to change the display property on Windows Mobile 2003 SE
Mobile/Pocket Internet Explorer? See following example.
Please note: visibilty property has the same problem.
Is there any other way to display/undisplay parts of web pages?
TIA
|
by: qwerty |
last post by:
I´m new to ASP.Net. My workmate has some experience with it.
He claimed that in ASP.Net working with frames is much simpler than it
was ASP. I asked explanation but he couldn't give me such. (a button
inside a-tag with attribute target isn't anything new relating ASP.Net,
its same old HTML).
He claimed that you could change another page´s controls´s property´s
value from another frame by using this method:
' Page "Bottom"
|
by: Joe |
last post by:
Hi,
I have a website with a mix of static (.html) and dynamic pages (.aspx)
pages. I was wondering to change extension .html to .aspx , only to
accommodate future needs of making static pages interactive. I read an
article
http://authors.aspalliance.com/aspxtreme/aspnet/webforms/authoringaspnetpage.aspx
which says that by changing .html etension to .aspx the server will not
overburdened. I use to believe otherwise. Can you tell me what...
| |
by: Steve |
last post by:
I am new to this newsgroup & to .NET in general. I have been playing around
with Visual Studio .NET, building and rendering web pages using VB "code
behind" files. My problem / question is;
How do I ensure that changes made to the "Global.asax.vb" file are
immediately reflected in the "Global.asax" file? After I change to the
"Global.asax.vb" file, the "Global.asax" file date modified does not change
and I do not see the updated values...
|
by: Fokke Nauta |
last post by:
Hi all,
I am searching for a script that can change 2 pages in a frame when clicking
on 1 link.
Example: I have a frameset with 3 pages (content, banner and main).
In the content I want to click on a link, causing 2 pages to appear in the
frame: a new banner and a new main.
Who can help me out?
|
by: Martin Slater |
last post by:
Hi all,
I'm using a webbrowser control within an application for the UI and want
to hide the flicker and redraw when changing pages. Ideally I want to
render the new page to a seperate offscreen buffer then fade this over
the exisiting page. Can anyone recommend a good way to approach this?
thanks
|
by: richard |
last post by:
I have <div id=box1 style="display:block"as the initial setting.
I need to change the "display:block" to "display:none" then back to
"display:block" as a means of clearing anything that might be
displayed within the box1 division.
What's the simplest way of doing this?
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |