Monks,
Note the code below. This code is supposed to help me handle pages with javascript redirects. BUT when it reads the redirect and follows it, it continues processing javascript on the destination page (that the redirect pointed it to). I don't want that. I want it to not interpret javascript on the destination page (for performance reasons). Please tell me there's some sort of hack that might make this possible.
I thought some sort of loop might do the trick, but I think that the reload is taking place somewhere within the module, where a loop in the below code won't affect it.
But if anyone can solve it, they'll be here. What do you all think?
-S
--------------------------snip---------------
#!/usr/bin/perl
use WWW::Scripter;
$w = new WWW::Scripter;
$w->use_plugin('JavaScript');
#$w->use_plugin('Ajax');
$w->agent_alias( 'Windows IE 6' );
$w->get("http://www.withjavascriptredirect.com");
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.