Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Form Browsing and Saving be Automated?

Status
Not open for further replies.

jpm3

IS-IT--Management
Apr 28, 2003
17
US
A particular website posts forms for subscribers to view, by Form ID.
Given a set of FormID's, I'd like automate the process of bringing up
each form in a browser and saving the HTML to a file (this is not
prohibited in the site's Terms of Use and the subscription fee is hefty).

Can someone please help with how to set this up or point me to an example?
I've looked at VB's Winsock and DHTML, and I've written asp's in Java
and VBScript before.


Here is what the URL's look like when operating the site manually:

This command brings up the form selections:

This would bring up form ID 3216878:

With the form on screen, View Source gives this:
<html>
<head>
<title>anysite Online Access | Fetch Form</title>
<link rel="stylesheet" href="/css/enhanced_css.asp" type="text/css">
</head>

<frameset rows="128, *" border="0" frameborder="0" framespacing="0">
<frame src="/fetchFormNav.asp?FormID=3216837&Type=HTML&v_ppu=resultsForms%2Easp%3FEndRow%3D25%26FormTypeID%3D74%26ReceivedDate%3DTODAY%26SortColumn%3D102%26SortOrder%3DD%26StartRow%3D1%26Ticker%3D%26SearchTypeID%3D1" name="nav" noresize scrolling="no" marginheight="0" marginwidth="0">
<frame src="/EFX_dll/anysitepro.dll?FetchFormHTML1?ID=3216837&SessionID=F8eAIu7t9EHowuJ" name="Form" noresize scrolling="yes">
</frameset>
</html>

(the session ID is assigned at user logon and remains constant until logout)

Any suggestions GREATLY appreciated... thanks!
 
Hello jpm3,

The procedure is to use xmlhttp component to download the page and before feeding it to browser, parse and isolate the form you have in mind. This assumes you know well the design of the page, at least the client side renderment of it. That's the idea. (Your links are broken. I have no idea what they are and not care much really.)

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top