Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
laziness, impatience, and hubris
 
PerlMonks  

how do I fill dynamic html forms with perl

by vladi.t (Initiate)
on Dec 18, 2010 at 06:19 UTC ( #877741=perlquestion: print w/ replies, xml ) Need Help??
vladi.t has asked for the wisdom of the Perl Monks concerning the following question:

Hello! I've been using WWW::Mechanize so far to fill html forms but recently I've ran against dynamic form (it uses 'onclick="submitForm"' and this function is defined in the code earlier), which WWW::Mechanize does not see (when I do $mechanize_obj->dump_forms it doesn't give me the dynamic form). Is there some way to deal with such forms? If I've provided not enough information pls ask and I'll post all the required data from the website here.

Comment on how do I fill dynamic html forms with perl
Re: how do I fill dynamic html forms with perl
by Anonymous Monk on Dec 18, 2010 at 07:09 UTC
Re: how do I fill dynamic html forms with perl
by marto (Chancellor) on Dec 18, 2010 at 07:52 UTC
      Thanks a lot I've managed to do that after reading the links you gave me. Finally I've captured the POST request and constructed the one I needed on the basis of the original. Thanks for the help again!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2014-04-23 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (554 votes), past polls