|
|
| Do you know where your variables are? | |
| PerlMonks |
How do I call a JavaScript function from WWW::Scripter?by bbrelin (Initiate) |
| on Nov 30, 2011 at 23:15 UTC ( #940970=perlquestion: print w/ replies, xml ) | Need Help?? |
|
bbrelin has asked for the
wisdom of the Perl Monks concerning the following question:
Hello all, I'm trying to write a small script using WWW::Scripter that will take data from a client's web site in order to automate some of their processes. The problem that I'm running into is that to access the data, I have to log on to the web site. The web site uses a small JavaScript function to handle this. The function is:
Using WWW::Scripter and the JavaScript plugin (and JE as the back end JS Engine) i've tried doing this:
I'm trying to use the Scripter class eval method to actually run the code. I set a variable $code to contain a string which is basically the JS function listed above and then called the eval method like so.
This doesn't work. At least, it won't then log in and provide me with the "member" content. Anybody got any thoughts on what I'm missing? Thanks
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||