Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
129
rated 0 times [  136] [ 7]  / answers: 1 / hits: 46281  / 15 Years ago, wed, april 29, 2009, 12:00:00

I'm connecting to a web site, logging in.



The website redirects me to new pages and Mechanize deals with all cookie and redirection jobs, but, I can't get the last page. I used Firebug and did same job again and saw that there are two more pages I had to pass with Mechanize.



I took a quick look at the pages and saw that there is some JavaScript and HTML code but couldn't understand it because it doesn't look like normal page code. What are those pages for? How they can redirect to other pages? What should I do to pass these?


More From » html

 Answers
29

If you need to handle pages with Javascript, try WATIR or Selenium - those drive a real web browser, and can thus handle any Javascript. WATIR Classic requires either IE or Firefox with a certain extension installed, and you will see the pages flash on the screen as it works.



Your other option would be understanding what the Javascript on the offending page does and bypassing it manually, but that seems onerous.


[#99634] Thursday, April 23, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
simone

Total Points: 558
Total Questions: 96
Total Answers: 99

Location: British Indian Ocean Territory
Member since Tue, Feb 22, 2022
2 Years ago
simone questions
Fri, Jun 10, 22, 00:00, 2 Years ago
Mon, Apr 25, 22, 00:00, 2 Years ago
Thu, Mar 24, 22, 00:00, 2 Years ago
Tue, Sep 29, 20, 00:00, 4 Years ago
Thu, Jul 9, 20, 00:00, 4 Years ago
;