<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Hot Scripts Forums - Perl</title>
		<link>http://www.hotscripts.com/forums/</link>
		<description>#!/usr/bin/perl discussion and information on sharing and  finding various Perl modules.  (Hint: try CPAN.org!)</description>
		<language>en</language>
		<lastBuildDate>Sun, 22 Nov 2009 16:10:31 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://cdn.hotscripts.com/forums/hsforum/misc/rss.jpg</url>
			<title>Hot Scripts Forums - Perl</title>
			<link>http://www.hotscripts.com/forums/</link>
		</image>
		<item>
			<title>Perl LWP iframe tag problem</title>
			<link>http://www.hotscripts.com/forums/perl/55850-perl-lwp-iframe-tag-problem.html</link>
			<pubDate>Fri, 13 Nov 2009 00:30:46 GMT</pubDate>
			<description><![CDATA[Dear all, 
 
I am trying to download a PDF file from a web page.  
I have used the following code: 
use WWW::Mechanize; 
    my $mech = WWW::Mechanize->new( autocheck => 1 ); 
$mech->agent_alias( 'Windows IE 6' );...]]></description>
			<content:encoded><![CDATA[<div>Dear all,<br />
<br />
I am trying to download a PDF file from a web page. <br />
I have used the following code:<br />
use WWW::Mechanize;<br />
    my $mech = WWW::Mechanize-&gt;new( autocheck =&gt; 1 );<br />
$mech-&gt;agent_alias( 'Windows IE 6' );<br />
$mech-&gt;get(&quot;https://ecf.nynd.uscourts.gov/doc1/12501815060?pdf_toggle_possible=1&amp;de_seq_num=17732  85&amp;caseid=29430&amp;got_receipt=1&quot;);<br />
$mech-&gt;form_name('GetPass');<br />
$mech-&gt;field(login =&gt; &quot;xxx&quot;); #Username<br />
  $mech-&gt;field(key =&gt; &quot;xxx&quot;); #Password<br />
 $mech-&gt;click();<br />
print $mech-&gt;content;<br />
<br />
Following is the content printed:<br />
<br />
&lt;html&gt;&lt;head&gt;&lt;title&gt;CM/ECF LIVE - U.S. District Court - NYND&lt;/title&gt;<br />
&lt;script language=&quot;javascript&quot; src=&quot;/lib/dls_url.js&quot;&gt;&lt;/script&gt;&lt;/head&gt;&lt;body BGCOLOR=F9F9F9 TEXT=000000 &gt;&lt;div id=&quot;cmecfMainContent&quot;&gt;&lt;input type=&quot;hidden&quot; id=&quot;cmecfMainContentScroll&quot; value=&quot;0&quot;&gt;&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />
                                        document.cookie=&quot;PacerUser=\&quot;li093301258064693                                aDlYK1Zk9Vo\&quot;; path=/; domain=.uscourts.gov;&quot;;<br />
                                        if (&quot;PacerPref=receipt=Y; path=/ ; domain=.uscourts.gov&quot;.length &gt; 0) {<br />
                                                document.cookie=&quot;PacerPref=receipt=Y; path=/ ; domain=.uscourts.gov;&quot;;<br />
                                        }<br />
                                        if (&quot;PacerClient=\&quot;\&quot;; path=/ ; domain=.uscourts.gov&quot;.length &gt; 0) {<br />
                                                document.cookie=&quot;PacerClient=\&quot;\&quot;; path=/ ; domain=.uscourts.gov;&quot;;<br />
                                        }<br />
                                        if (&quot;ClientDesc=\&quot;\&quot;; path=/ ; domain=.uscourts.gov&quot;.length &gt; 0) {<br />
                                                document.cookie=&quot;ClientDesc=\&quot;\&quot;; path=/ ; domain=.uscourts.gov;&quot;;<br />
                                        }<br />
                                        if (&quot;https://ecf.nynd.uscourts.gov/doc1/12501815060?pdf_toggle_possible=1&amp;de_seq_num=17732  85&amp;caseid=29430&amp;got_receipt=1&quot;.length &gt; 0) {<br />
                                                location.assign(&quot;https://ecf.nynd.uscourts.gov/doc1/12501815060?pdf_toggle_possible=1&amp;de_seq_num=17732  85&amp;caseid=29430&amp;got_receipt=1&quot;);<br />
                                        }<br />
                                        &lt;/SCRIPT&gt;&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />
                var IsForm = false;<br />
                var FirstField;<br />
                function SetFocus() {<br />
                        if(IsForm) {<br />
                                if(FirstField) {<br />
                                        var ind = FirstField.indexOf('document.',0);<br />
                                        if(ind == 0)<br />
                                        {<br />
                                                eval(FirstField);<br />
                                        }<br />
                                        else<br />
                                        {<br />
                                                var Code = &quot;document.forms[0].&quot;+FirstField+&quot;.focus();&quot;;<br />
                                                eval(Code);<br />
                                        }<br />
                                } else {<br />
                                        var Cnt = 0;<br />
                                        while(document.forms[0].elements[Cnt] != null) {<br />
                                                if(document.forms[0].elements[Cnt].type != &quot;hidden&quot;) {<br />
                                                        document.forms[0].elements[Cnt].focus();<br />
                                                        break;<br />
                                                }<br />
                                                Cnt += 1;<br />
                                        }<br />
                                }<br />
                        }<br />
                        return(true);<br />
                }<br />
                &lt;/SCRIPT&gt;<br />
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;<br />
<br />
However the actual page has a &lt;iframe&gt; tag within which the src attribute of tag has link to pdf. <br />
<br />
id=&quot;cmecfMainContent&quot;&gt;&lt;input type=&quot;hidden&quot; id=&quot;cmecfMainContentScroll&quot; value=&quot;0&quot;&gt;<br />
&lt;<b>iframe src</b>=&quot;/cgi-bin/show_temp.pl?file=1086820-0-.pdf&amp;type=application/pdf&quot; height=&quot;100%&quot; width=&quot;100%&quot; frameborder=&quot;0&quot; scrolling=&quot;no&quot;&gt;<br />
&lt;a href=&quot;/cgi-bin/show_temp.pl?file=1086820-0-.pdf&amp;type=application/pdf&quot;&gt;click here to view this file&lt;/a&gt;<br />
&lt;/iframe&gt;<br />
&lt;/body&gt;&lt;/html&gt;<br />
<br />
I have tried using FramesReady and mechanize, but no success. Kindly suggest how to get the pdf link.<br />
<br />
<br />
Any help would be appreciated.<br />
<br />
Thank you</div>

]]></content:encoded>
			<category domain="http://www.hotscripts.com/forums/perl/">Perl</category>
			<dc:creator>tak_hot</dc:creator>
			<guid isPermaLink="true">http://www.hotscripts.com/forums/perl/55850-perl-lwp-iframe-tag-problem.html</guid>
		</item>
		<item>
			<title>form2email.pl - Include source page.</title>
			<link>http://www.hotscripts.com/forums/perl/55679-form2email-pl-include-source-page.html</link>
			<pubDate>Wed, 28 Oct 2009 10:33:38 GMT</pubDate>
			<description><![CDATA[Hi, 
 
My first post here! 
 
Maybe somebody much more educated can Help me? 
 
I use "form2email.pl" type form on some of my other websites successfully. 
 
I am developing a new website that has many pages that lead to a common form on a html page that contains "form2email.pl"  type form.]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
My first post here!<br />
<br />
Maybe somebody much more educated can Help me?<br />
<br />
I use &quot;form2email.pl&quot; type form on some of my other websites successfully.<br />
<br />
I am developing a new website that has many pages that lead to a common form on a html page that contains &quot;form2email.pl&quot;  type form.<br />
<br />
What I would like to do is use this common html page that contains &quot;form2email.pl&quot; type form that displays the page that was visited previously .<br />
<br />
And also when I receive the customer email I would like to know which page was visited before the customer filled out the form?<br />
<br />
Hope this make sense.........<br />
<br />
Any help would be much appreciated.<br />
<br />
Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.hotscripts.com/forums/perl/">Perl</category>
			<dc:creator>quamby</dc:creator>
			<guid isPermaLink="true">http://www.hotscripts.com/forums/perl/55679-form2email-pl-include-source-page.html</guid>
		</item>
	</channel>
</rss>
