dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Best method to create a complex pop-up window?

  1. #1
    Join Date
    May 2003
    Location
    Central Ohio, U.S.
    Posts
    26

    Unhappy Best method to create a complex pop-up window?

    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

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    I'm going to move this to the CGI forums. You will be more likely to get an answer there. It could easily be done in PHP, but since you are doing this in Perl, we'll see if someone knows a way to do it in that or SSI...

  3. #3
    Join Date
    May 2003
    Location
    Central Ohio, U.S.
    Posts
    26
    pyro,

    How could this be done in PHP? I could make the pop-up window a PHP document ... but would this functionality require the referring (parent) window also be in PHP? Because my main site is just straight HTML at this point.

    Jason

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    lol... rather than move this to the PHP section, just go post there, and I'll get around to answering it for ya...

  5. #5
    Join Date
    May 2003
    Location
    Central Ohio, U.S.
    Posts
    26
    OK ... I feel like I'm playing musical threads at this point. Heh, heh.

    Jason

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles