hashED has asked for the wisdom of the Perl Monks concerning the following question:
Dear Masters
I'm building a scraper that at one point encounters a page containing the following JS function:
Further down the code, LinkSubmit is referenced in lines similar to the following:<script language="JavaScript"> function LinkSubmit(strCatID) { var frm1 = document.contract_cat_index1; frm1.CSCRCat.value=strCatID; frm1.submit(); }
<td align="left" ><a href="javascript:LinkSubmit('1/Janitorial');" TITLE="CLICK to select this category" class="contentLink">Janitorial</a></td>
Does anyone know how I can get my perl robot to follow the link that LinkSubmit puts together? Sorry if the answer is easy, but I've read two and a half books and all the faqs I can find, and still haven't seen the solution. Noobotron status acknowledged.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: crawling past a javascript submit function
by planetscape (Chancellor) on Sep 08, 2007 at 11:35 UTC | |
by hashED (Novice) on Sep 08, 2007 at 13:20 UTC | |
by hashED (Novice) on Sep 08, 2007 at 12:44 UTC | |
Re: crawling past a javascript submit function
by Skeeve (Parson) on Sep 08, 2007 at 07:47 UTC | |
by hashED (Novice) on Sep 08, 2007 at 11:03 UTC | |
by Skeeve (Parson) on Sep 08, 2007 at 11:10 UTC |
Back to
Seekers of Perl Wisdom