in reply to Re^3: Automate WebLogin
in thread Automate WebLogin
Thanks for you help! I read the documentation of both JE and SpiderMonkey. Gave JE a shot but i m unable to proceed. Here is the code that i wrote to test JE:
use strict; use warnings; use JE; use Data::Dumper; use File::Slurp; my $je = new JE; $je->html_mode(1); $je->eval(scalar read_file 'output.js'); my $return_val = $je->eval('start()') or die $@;
The file output.js has the content of the javascript webpage that i want to parse.When i run the above script the JE failes with the follwing error:
ReferenceError: The variable start has not been declared at line 1.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Automate WebLogin
by marto (Cardinal) on Jan 26, 2011 at 14:12 UTC | |
by libvenus (Sexton) on Jan 26, 2011 at 15:27 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 15:34 UTC | |
by libvenus (Sexton) on Jan 26, 2011 at 15:46 UTC | |
by Corion (Patriarch) on Jan 26, 2011 at 15:51 UTC | |
| |
by marto (Cardinal) on Jan 26, 2011 at 15:50 UTC | |
by marto (Cardinal) on Jan 26, 2011 at 15:35 UTC |