Click to See Complete Forum and Search --> : Best way to create a complex pop-up window?


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

Jona
05-12-2003, 01:22 PM
Please do not cross-post! People will reply sooner or later, but please be patient. Thank you.

jrlamar
05-12-2003, 01:30 PM
Jona,

I wasn't trying to be malicious by posting the same topic in three different areas. I just wasn't sure which area would be best suited for this topic, particularly because I didn't know whether this was more of a JavaScript- or DHTML-related project. (Hence, I also posted into "General," just in case.) Also, I didn't know whether users read across all the threads or stick to one area, so I didn't want to risk missing out on good advice.

I rarely cross-post ... but when I do, I think it's for a legitimate reason.

Jason

Jona
05-12-2003, 01:32 PM
If you're not sure, post in the General forum (we all visit all of the forums all the time). This question is mostly JavaScript related, and therefore is best put in the JavaScript forum. I have replied to your post in the JavaScript forum, with an answer.