<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Utilizing browser functionality to parse javascript' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Utilizing browser functionality to parse javascript' posted on the 'Perl' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sun, 19 May 2013 02:55:27 -0700</pubDate>
    <lastBuildDate>Sun, 19 May 2013 02:55:27 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Utilizing browser functionality to parse javascript</title>
      <link>http://www.programmersheaven.com/mb/perl/274850/274850/utilizing-browser-functionality-to-parse-javascript/</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am interested in learning how to utilize a browser's functionality, (i.e. Internet Explorer, Mozilla) to parse javascript and HTML in web pages. I would like to try and make a tool similar to a spider, but am having trouble when links are formed in javascript. I would like to use the browser to load pages and then perhaps click on the links within the page. The href that the window is sent to is what I want to be able to get my hands on.&lt;br /&gt;
&lt;br /&gt;
Does anyone have any good ideas?&lt;br /&gt;
&lt;br /&gt;
Look forward to hearing from you.&lt;br /&gt;
Regards,&lt;br /&gt;
Sarid.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/274850/274850/utilizing-browser-functionality-to-parse-javascript/</guid>
      <pubDate>Tue, 21 Sep 2004 23:05:00 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: Utilizing browser functionality to parse javascript</title>
      <link>http://www.programmersheaven.com/mb/perl/274850/274953/re-utilizing-browser-functionality-to-parse-javascript/#274953</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
: I am interested in learning how to utilize a browser's functionality, &lt;br /&gt;
: (i.e. Internet Explorer, Mozilla) to parse javascript and HTML in web &lt;br /&gt;
: pages. I would like to try and make a tool similar to a spider, but am &lt;br /&gt;
: having trouble when links are formed in javascript. I would like to &lt;br /&gt;
: use the browser to load pages and then perhaps click on the links &lt;br /&gt;
: within the page. The href that the window is sent to is what I want to &lt;br /&gt;
: be able to get my hands on.&lt;br /&gt;
: &lt;br /&gt;
: Does anyone have any good ideas?&lt;br /&gt;
: &lt;br /&gt;
Some HTML elements have a innerHTML property accessible through JavaScript.  If the body tag has that property, which I think it may, then you can trigger some JavaScript when the page has fully loaded to grab the innerHTML, and maybe post it somewhere else.  Note that this will only handle document.Write style things, if it works at all.&lt;br /&gt;
&lt;br /&gt;
It may also not be a good idea.  &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;  But hope it helps.&lt;br /&gt;
&lt;br /&gt;
Jonathan&lt;br /&gt;
&lt;br /&gt;
###&lt;br /&gt;
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&amp;amp;&amp;amp;&lt;br /&gt;
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;&lt;br /&gt;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/274850/274953/re-utilizing-browser-functionality-to-parse-javascript/#274953</guid>
      <pubDate>Wed, 22 Sep 2004 16:02:30 -0700</pubDate>
      <category>Perl</category>
    </item>
    <item>
      <title>Re: Utilizing browser functionality to parse javascript</title>
      <link>http://www.programmersheaven.com/mb/perl/274850/275805/re-utilizing-browser-functionality-to-parse-javascript/#275805</link>
      <description>: Hi,&lt;br /&gt;
: &lt;br /&gt;
: : I am interested in learning how to utilize a browser's functionality, &lt;br /&gt;
: : (i.e. Internet Explorer, Mozilla) to parse javascript and HTML in web &lt;br /&gt;
: : pages. I would like to try and make a tool similar to a spider, but am &lt;br /&gt;
: : having trouble when links are formed in javascript. I would like to &lt;br /&gt;
: : use the browser to load pages and then perhaps click on the links &lt;br /&gt;
: : within the page. The href that the window is sent to is what I want to &lt;br /&gt;
: : be able to get my hands on.&lt;br /&gt;
: : &lt;br /&gt;
: : Does anyone have any good ideas?&lt;br /&gt;
: : &lt;br /&gt;
: Some HTML elements have a innerHTML property accessible through JavaScript.  If the body tag has that property, which I think it may, then you can trigger some JavaScript when the page has fully loaded to grab the innerHTML, and maybe post it somewhere else.  Note that this will only handle document.Write style things, if it works at all.&lt;br /&gt;
: &lt;br /&gt;
: It may also not be a good idea.  &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;  But hope it helps.&lt;br /&gt;
: &lt;br /&gt;
: Jonathan&lt;br /&gt;
: &lt;br /&gt;
: ###&lt;br /&gt;
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&amp;amp;&amp;amp;&lt;br /&gt;
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;&lt;br /&gt;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
Thanks for your response.&lt;br /&gt;
&lt;br /&gt;
I see what you're gettng at. I will look into it. I just want to avoid having to reinvent the wheel (not that I could be arsed to ever embark on such an endeavor). All browsers already have this sort of functionality and i was just hoping to be able to utilize it.&lt;br /&gt;
&lt;br /&gt;
/Sarid.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/perl/274850/275805/re-utilizing-browser-functionality-to-parse-javascript/#275805</guid>
      <pubDate>Wed, 29 Sep 2004 01:47:46 -0700</pubDate>
      <category>Perl</category>
    </item>
  </channel>
</rss>