[nycphp-talk] More Client-Side Grief
Jeffrey Konikowski
punktoad at oddpost.com
Tue Oct 29 10:39:03 EST 2002
Have you tried something like writing some javascript to the popup page when it reloads that redirects the main window and closes the popup. Something like:
window.opener.location.href = '<new_location>'; //sends window1 to new location
window.close(); //closes window2
-----Original Message-----
Hi folks,
This isn't so much a problem with PHP, but I hope someone can help out
with some JavaScript issues I'm having.
With IE6 (this app only needs to support IE6) I have Window 1 (main
browser window) and Window 2 (popup). The user enters some information
into the popup and submits the form, which PHP then processes and sends
a header('Location: http://somewhere/whatever'); back to the popup.
The problem is, I need to get the parent window (Window 1) to be
redirected, while the popup (Window 2) closes. Any ideas on how to
either:
1) Have the popup send it's new location (from the PHP form processor)
back to it's parent.
2) Or, have the parent see where the popup would be redirected to, and
redirect itself?
3) Or something else.
I've looked at MS's JScript and DOM/etc pages, but I don't see anything
useful. If this isn't possible (I suppose it could be a security
problem) I'll have to figure some other way of doing it.
Any ideas would be greatly appreciated, as I'm about to go back to
text-based browsers :)
Thanks,
H
=====
Hans Zaunere
New York PHP
http://nyphp.org
hans at nyphp.org
__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
--- Unsubscribe at http://nyphp.org/list ---
More information about the talk
mailing list