> I can't have any meaningfull result ...
Which error message do you get?
I don't have phantomjs installed, so please provide a reproducible example.
I ran your JS code in the browser's console and it works for me:
> var leg = { aa: "Hello from javascript" } function to_json() { return JSON.stringify(leg); } < undefined > JSON.stringify(leg); < "{\"aa\":\"Hello from javascript\"}" > to_json() < "{\"aa\":\"Hello from javascript\"}"
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re^5: Accessing javascript variable from perl
by LanX
in thread Accessing javascript variable from perl
by frazap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |