-1

I want to using mechanize to click next page in this link.

I see that this code:

<pre>
    <a onclick="self.scrollTo(0,110);" id="ctl00_ContentMain_lbtnFooterNext" class="paging" href="javascript:__doPostBack('ctl00$ContentMain$lbtnFooterNext','')" style="float:right">Next page &gt;</a>
</pre>

How can I do this?

George Cummins
  • 28,485
  • 8
  • 71
  • 90
Do Thanh Tung
  • 1,223
  • 2
  • 19
  • 30
  • 1
    There's not enough info to answer your question. Do you use mechanize to proxy that page and return response 'as is'? If so then you should be able to click that link from UI after you render it. – Konstantin Rudy Jul 16 '13 at 09:39

1 Answers1

0

You can't do that. The Next Page link on that page is a JavaScript action, and Mechanize doesn't understand JavaScript.

See also Clicking link with JavaScript in Mechanize

Community
  • 1
  • 1
Borodin
  • 126,100
  • 9
  • 70
  • 144