in reply to Re^4: WIN32::IE::Mechanize - can't follow link - JavaScript involved
in thread WIN32::IE::Mechanize - can't follow link - JavaScript involved

Well, when you click (any)one of the "go" buttons, the jSubmitForm function populate the hidden fields of this form:

<form name="Content" method="Post"> <input type="hidden" name="LinkPage" value=""> <input type="hidden" name="PageType" value="Search"> <input type="hidden" name="ORG_PK" value="000"> <input type="hidden" name="STATE_CD" value=""> <input type="hidden" name="Name" value=""> <input type="hidden" name="SearchType" value=""> <input type="hidden" name="CrdNumber" value=""> <input type="hidden" name="SecNumber" value=""> <input type="hidden" name="NumRows" value=""> <input type="hidden" name="Save" value="IAPDSearch"> </form>

and submit it to the site.

All you have to do is to prepare a POST statement with the fields correctly populated and submit it directly.

I advise you to see the CGI module, with that you can do it with little more than 4 lines of perl.

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

  • Comment on Re^5: WIN32::IE::Mechanize - can't follow link - JavaScript involved
  • Download Code

Replies are listed 'Best First'.
Re^6: WIN32::IE::Mechanize - can't follow link - JavaScript involved
by Ninth Prince (Acolyte) on May 22, 2008 at 20:32 UTC

    BINGO! Worked like a charm (using post). Thanks for your patience and all your help!