Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: WWW::Mechanize and fooling server for javascript

by cLive ;-) (Prior)
on Jul 31, 2007 at 00:04 UTC ( [id://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.

Replies are listed 'Best First'.
Re^2: WWW::Mechanize and fooling server for javascript
by spatterson (Pilgrim) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://629705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found