Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: W-M-F and event.keyCode===keys.ENTER

by pghilb (Novice)
on Jul 27, 2014 at 10:18 UTC ( [id://1095217]=note: print w/replies, xml ) Need Help??


in reply to Re^3: W-M-F and event.keyCode===keys.ENTER
in thread W-M-F and event.keyCode===keys.ENTER

Noted gratefully. I was trying to identify my input within a form, naturally, but it turned out to be difficult (the authors of the webpage seem to be a bit paranoid, anyway), that's why I was working on something else.

Maybe a new method

...->set_nasty_value
in W-M-F doing 'focus' and 'blur' on a node would be helpful on such occassions for the users of W-M-F.

Replies are listed 'Best First'.
Re^5: W-M-F and event.keyCode===keys.ENTER
by Corion (Patriarch) on Jul 27, 2014 at 10:29 UTC

    I'm not sure why ->set_nasty_value would be sp special, but I can see that adding a modification of ->field() which does take a plain DOM node instead of a field name would be convenient. The routine would reduce to

    sub set_nasty_value { my( $self, $dom_node, $value )= @_; $self->get_set_value( name => $dom_node, value => $value ) }

    ... so maybe just call it that way directly.

    I think I should document that part of ->get_set_value a bit better.

      Thanks a lot for all your comments, Corion.

      Now everything must be learned hard way, however good are tools at one's disposal, unlike the blessed times when reading a just few pages on WWW::Mechanize opened the whole world for you almost immediately.

      Necessary documentation in hand, the only way now is to automate as many pages as possible, starting with relatively simple ones.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found