javascript post backs

BeownReclise is a programmable web spider. Scan a web site and retrieve from it the information you need. You could scan a Real Estate web site and collect all of the agent addresses, phone numbers and emails, and place all this data into a tab delimited database file. Then import this data in your Excel application for example.
Post Reply
jpnilsson
Posts: 1
Joined: Wed Dec 28, 2011 4:37 pm

javascript post backs

Post by jpnilsson » Wed Dec 28, 2011 4:43 pm

Thank you first of all for a great product. I am trying to navigate a page which uses aspx and saves the active states using the built-in tools that aspx rely on. In order to get to the 'next 20' items in the database, the architecture uses javascript to postback a number of values. Is there an example somewhere where I can see how this is achieved using the scripting? Thank you!

User avatar
Support
Site Admin
Posts: 1821
Joined: Sun Oct 02, 2011 10:49 am

Re: javascript post backs

Post by Support » Wed Dec 28, 2011 4:54 pm

Yes, kind of. This kind of site is the hardest to scan. What I do is use our packet sniffer to trap the POST command so I can see which paramters it sends. Then I do something like this...

Code: Select all

Link = New(URL);
Form = New(Submit);

Form.SetValue('__EVENTTARGET', 'btnSearch');
Form.SetValue('__EVENTARGUMENT', '');
Form.SetValue('__VIEWSTATE', WildGet(Link.Data, 'name="__VIEWSTATE" value="([^"]*)"'));

Link.Location = 'Post URL';
Link.Post(Form.PostData);
If you can let me know the URL (via email if you like) then I can get you the exact code to navigate to the next 20 items.
Your support team.
http://SoftByteLabs.com

Post Reply