<script type="text/javascript"><!--
setup_all_parameters = "parameters";
//--></script>
<script type="text/javascript"
src="http://anotherserver.com/showImage.js">
</script>
Within a Perl CGI on my server, I'd like to see the url for the image returned by the javascript described above. How can I execute/evaluate the javascript from within Perl to get the image url it returns?
LWP's get() just returns the source of the file without client-side processing. Can I pipe it to some virtual machine and get back the output?
Here's the link to the code (some random website):i
<script type="text/javascript"><!--
google_ad_client = "pub-6666777788889999";
/* 728x90image */
google_ad_slot = "0541304911";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
If anyone has/can parsed it successfully, I'd love to know how.
[edited by: huesv at 12:26 am (utc) on Dec. 16, 2008]
btw, you might want to remove the google-clientid etc from your post, it's not wise if it's yours and it's not nice if it's not yours.