Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

There is a Javascript-based form that I want to fill some parameters. Mechanize does not support Javascript so it does not know that there is a form.

I was looking around and found this: WWW::Scripter::Plugin::Javascript , but I am not sure if this will help since it does know how to parse the Javascript to pull the forms out and to submit it.

Replies are listed 'Best First'.
Re: Javascript-Based Form
by ww (Archbishop) on Jul 01, 2011 at 00:20 UTC
    Answers to your question, and most of the others that will follow any reply here, can be found using Google restricted to this site (site:PerlMonks.org) and obvious search terms such as javascript, form and parse, or using Super Search right here.

    Try it. It's fun to learn when doing so is at least in part a result of your own efforts.

Re: Javascript-Based Form
by ajose (Acolyte) on Jul 01, 2011 at 12:58 UTC
    When I also had to perform form submission, I used WWW::Mechanize::Firefox. This works pretty fine for me. You can try this if it is okay to use Firefox for submitting the form.