in reply to Re: How to handle javascript
in thread How to handle javascript

Javascript is not the problem it is access to the DOM. For simple javascript you can do something like this:
our @URLS; my $runtime = JavaScript::Runtime->new();; my $context = $runtime->create_context(); $context->bind_function( name => 'open', func => sub { push(@URLS, @_); return 0; } );
Then
$context->eval(q(open("http://bob.com/")))
will push http://bob.com/ onto @URLS.
-- gam3
A picture is worth a thousand words, but takes 200K.