in reply to Re^2: why when I use html::form $input->name work,$input->value doesn't work ?
in thread why when I use html::form $input->name work,$input->value doesn't work ?

In what sense does it "not work"?

Does your script crash? Does it return the wrong values?

Note that WWW::Mechanize does not understand Javascript and the HTML input has an onclick attribute, which usually is connected to Javascript.

  • Comment on Re^3: why when I use html::form $input->name work,$input->value doesn't work ?
  • Download Code

Replies are listed 'Best First'.
Re^4: why when I use html::form $input->name work,$input->value doesn't work ?
by fanasy (Sexton) on Nov 14, 2010 at 11:17 UTC
    thanks for your reply.
    Does perl have any module which can handle the javascript on html?
    the handle means I need to let the checkbox "on"by script.
Re^4: why when I use html::form $input->name work,$input->value doesn't work ?
by fanasy (Sexton) on Nov 14, 2010 at 11:08 UTC
    my question is print $input->value ,the result is "" .
    if javascript, does perl have any module can handle the javascript on html?
    thanks for your replay.

      Maybe the value also is set via Javascript. You will need to inspect the HTML source code.

      For interpreting Javascript, there is WWW::Scripter and WWW::Mechanize::Firefox. The latter one is by me and needs Firefox to operate.

        thanks for your help. I will study your module and www::scripter