Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Input 'foo' is readonly / WWW::Mechanize

by almut (Canon)
on Jan 25, 2008 at 16:31 UTC ( [id://664311]=note: print w/replies, xml ) Need Help??


in reply to Input 'foo' is readonly / WWW::Mechanize

Maybe those are hidden fields, which according to HTML::Form (used under the hood) start out readonly:

$bool = $input->readonly
$input->readonly( $bool )
This method is used to get/set the value of the readonly attribute. You are allowed to modify the value of readonly inputs, but setting the value will generate some noise when warnings are enabled. Hidden fields always start out readonly.

Update (in reply to your update):  have you tried turning off the readonly attribute to see if it helps?  (IIRC, $mech->forms returns HTML::Form objects, whose inputs method returns input objects, upon which you can then call the readonly method...)

Replies are listed 'Best First'.
Re^2: Input 'foo' is readonly / WWW::Mechanize
by talexb (Chancellor) on Jan 25, 2008 at 20:14 UTC

    Thanks, but I didn't want to go that route -- if I'm getting warnings from HTML::Form not to do stuff, I don't really want to force the issue. And I seem to have resolved the issue anyway (see Update 2, above). Thanks!

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-03-19 06:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found