Topic awaiting preservation: Need Help w/ a Pop-up Window Issue (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Richmond, VA |
posted 01-22-2003 14:58
I'm working on a page that I currently have a link to a CGI script on. When you click on the link, it opens a seperate window which executes the CGI and you're left with a big ol' empty window in front of the main window. I'm intent on finding a way to click that link, have the new window open and execute the CGI, then have that window close itself. The catch is, I can't doctor or add code to the CGI at all. I need to do this all within the initial main window. Is it possible??? If not, what would be the closest alternative?? |
Maniac (V) Mad Scientist From: New California |
posted 01-22-2003 21:04
Interesting. You can certainly close the new window from the main. That's not a problem but I'm not sure whether you can detect the onload event of the popup. If you can do that, then it would be just a matter of assigning a close function to that event and violà. |
Bipolar (III) Inmate From: Richmond, VA |
posted 01-22-2003 21:51
Well, one thing that makes the situation a little easier that I forgot to mention is that it's an intranet application and it'll only need to run on IE 5+(not that that really helps at all). OK, here's a compromise, is there an easy way to just have the new CGI window be a lot smaller and have a link to close it from the main page and/or have a timed close function that would close the new window after 5 or 10 seconds instead of the onLoad check? |
Maniac (V) Inmate From: Brisbane, Australia |
posted 01-23-2003 00:30
It's it for IE5+ only then you can use an <iframe> to run your cgi script. You can even hide it with CSS so the user will never see it. The only problem might be if the user closes the main window before the script executes but again, if it's an intranet then it should all happen rather quickly. |
Bipolar (III) Inmate From: Richmond, VA |
posted 01-23-2003 04:27
Ya know, I woulda never even thought of that Dracusis. That's why I can't stay away from the asylum. You guys rock! Thanks for the suggestions gang. I think I may do some testing with the iFrame. I'll let ya know how it goes. |
Bipolar (III) Inmate From: Richmond, VA |
posted 02-12-2003 13:00
Dracusis, I just wanted to let you know your idea worked like a charm. I'd post a link or screencap but it's an intranet site used for security cams. I just wanted to say thanks for pointing me in the right direction. |