Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

perl and a javascript form field

by coder45 (Initiate)
on Jan 06, 2006 at 16:32 UTC ( #521522=perlquestion: print w/replies, xml ) Need Help??

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

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: perl and a javascript form field
by Anonymous Monk on Jan 07, 2006 at 14:40 UTC
    Please tell me we're not putting our time and efforts into helping someone write a spamming script! coder45 can you please reassure us what you're writing this for - what you're going to use it for? If you're spamming people's forums with this then as a website ownwer with several very spammed wikis I'd love to inflict a lot of physical pain you!
Re: perl and a javascript form field
by marto (Cardinal) on Jan 06, 2006 at 16:47 UTC
    coder45,

    From looking at some of your previous posts (and some of the replies) you have had problems in the past posting to forums using WWW::Mechanize. Did you read the documentation? Can you post the your complete Perl code please?

    Martin
Re: perl and a javascript form field
by abcde (Scribe) on Jan 06, 2006 at 21:03 UTC

    If you want to have text in a field by default, use the value property. This is a text field that has "hello" in it:

    <input type="text" value="hello" />

    You don't need any javascript to do that.

    If this isn't your problem, well, you've posted an awful lot of javascript code, much of which has not much to do with anything, and not a lot of Perl. If you could just post the code that you need changing/fixing, it would be better.

Re: perl and a javascript form field
by kulls (Hermit) on Jan 07, 2006 at 06:08 UTC
    Can you paste  Dumper($form) ? . Which module  $form belongs to ?.  $form->find_input() method, Will find based on the 'id' or 'name'? of the html input tag.
    -kulls

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2022-09-27 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (119 votes). Check out past polls.

    Notices?