170 users online (0 members and 170 guests)  

  Results 1 to 2 of 2


  1. HELP: Referring Back to FRAMES Page..    Forum: HTML Forum
    Replies: 4
  2. Keeping Track of Buttons    Forum: HTML Forum
    Replies: 1
  1. #1
    thedust's Avatar
    New User

    Join Date
    Sep 2002

    How to track the referring URL of a pop-up window...?

    This has been a headache for at least a week now. I have a "Mail This Page to a Friend" perl script that works only when the user fills out the form in the same window. I want it to be a pop-up window, but when I try this, the URL value is lost. Everything else works fine.

    Currently it is retreiving the URL using the good old $ENV{'HTTP_REFERRER'} value.

    I have tried a few different CGI and Javascript methods to no avail. Can anyone help me out here?


  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    Hi there.

    Try preserving the data by passing it along to your popup window as an extra varible.

    Probably your best bet would be the querystring, like making the popup code that calls the next page . You would basically be using your Perl mixed in with JavaScript, but it should work.

    I can give you no code, however, as I am no expert in Perl. Prefer PHP & ASP.

    It would mean adjustments to the popup page the retrieve the data, and adjustments of the parent page to send the data, but it should be relatively straightforward.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

Tags for this Thread