jrlamar
05-12-2003, 12:44 PM
OK, here's the situation ...
From a static HTML page, I'm calling a Perl script in a pop-up window (via JavaScript) that I've customized to provide an "e-mailable version" of the HTML content. The trick is that the pop-up window has to have information that varies from page to page (specifically, the URL, the title, and the root server path to the page). Previously, I've hand-coded each page individually ... which is a major pain in the neck, of course.
So my question is: How can I create a pop-up window that automatically pulls in the necessary information from the parent window -- that is, the information inside the <title> tags as well as the document name (example.html) -- which I can then drop into tags in this pop-up window? In other words, I want to pass parent window variables into the pop-up window HTML code like this ...
<input type=HIDDEN name="pagetosend" value="/root/path/to/example.html">
<input type=HIDDEN name="pagename" value="Example Page Title">
<input type=HIDDEN name="pageurl" value="http://www.123.com/example.html">
What's the best way (or ANY way) to accomplish this? Help!
Thanks,
Jason
From a static HTML page, I'm calling a Perl script in a pop-up window (via JavaScript) that I've customized to provide an "e-mailable version" of the HTML content. The trick is that the pop-up window has to have information that varies from page to page (specifically, the URL, the title, and the root server path to the page). Previously, I've hand-coded each page individually ... which is a major pain in the neck, of course.
So my question is: How can I create a pop-up window that automatically pulls in the necessary information from the parent window -- that is, the information inside the <title> tags as well as the document name (example.html) -- which I can then drop into tags in this pop-up window? In other words, I want to pass parent window variables into the pop-up window HTML code like this ...
<input type=HIDDEN name="pagetosend" value="/root/path/to/example.html">
<input type=HIDDEN name="pagename" value="Example Page Title">
<input type=HIDDEN name="pageurl" value="http://www.123.com/example.html">
What's the best way (or ANY way) to accomplish this? Help!
Thanks,
Jason