Dear All,

I am having a link in html page which uses javascript. I need to download
this PDF.

<a
onclick="javascript:popup('/search/download?pub=infobike%3a%2f%2fasp%2fasl%2f2013%2f00000019%2f00000012%2fart00001&mimetype=application%2fpdf&exitTargetId=1374143140511','dowloadWindow','900','800')"
title="PDF download of FE Analysis of Cure-Process-Induced Residual Stress
in Light Emitting Diode Encapsulant Silicone Resin Considering Mechanical
Property Evolution" class="no-underline contain" >PDF</a>

I have searched through and did not find any suitable example.

my code is as follows:

my $w = new WWW::Scripter;
my $url = "
http://www.ingentaconnect.com/content/asp/asl/2013/00000019/00000012/art00001
"
$w->get("$url");
print $w->content;
my $new=$w->document->links->[25]->trigger_event('click');
print $new;

I am expecting that this function should return the new url which is
triggered via click event. But the $new is empty.

Please help me in getting result of the click event?

till $w->content script is working fine.

Note: The $url cannot be tested outside of my office as it requires
username and password.


Regards,
Ganesh

Reply via email to