Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: WWW::Mechanize and fooling server for javascript

by cLive ;-) (Parson)
on Jul 31, 2007 at 00:04 UTC ( #629705=note: print w/ replies, xml ) Need Help??


in reply to WWW::Mechanize and fooling server for javascript

Without seeing the HTML, I'll just throw out a best guess.

My guess is that the page before uses javascript to set a form variable, so that when the form is submitted, if the dynamically generated form element is missing, it throws the Javascript error. That (or something like it) is the most likely problem.

I suggest you install live HTTP headers plugin and watch what gets sent to the server when you manually go through the system in Firefox.


Comment on Re: WWW::Mechanize and fooling server for javascript
Re^2: WWW::Mechanize and fooling server for javascript
by spatterson (Monk) on Jul 31, 2007 at 09:32 UTC
    The "Javascript is not enabled" message could be generated by the server attempting browser-detection, so you may need to fake the useragent.

    just another cpan module author

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-11-24 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls