Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Corion (Pope)
on Nov 14, 2010 at 09:04 UTC ( #871302=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-02-25 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?