"Peter Rabbitson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > On Thu, Feb 24, 2005 at 03:11:08PM -0600, [EMAIL PROTECTED] wrote: > > > <---snip whole bunch of misunderstaning---> > > > You have your answer then.. I guess. > > >From FAQ=WWW::Mechanize; > > > > How can I get WWW::Mechanize to execute this JavaScript? > > You can't. JavaScript is entirely client-based, and WWW::Mechanize is a > > client that doesn't understand JavaScript. > > > > <---/snip---> > > Whereas my original question was: > > What can I use that would be as functional as WWW::Mechanize while at the > same time compatible with the site mentioned above.
You have to read through the javascript by hand and see what it does, then reset the href value of the link you are trying to click, then you can do ->follow_link. For example, my bank's web site does some javascript with some radio buttons before setting the form's "action" property. So I looked through the javascript to see what url I need the action set to for me, and I used the WWW::Mechanize API to set the action with perl code before ->submit()ting the form. Either that or write some glue to get WWW::Mechanize to support javascript ;0). Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>