http://qs1969.pair.com?node_id=521522

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