Re: Header() to a different browser instance
| From: | Ryan Adams | Date: | Mon, 10 Jul 2000 16:36:16 +0000 |
| Subject: | Re: Header() to a different browser instance | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5753@lists.php.net to get a copy of this message | ||
This may be a stupid question, but how does one name a window
from within that window?
Ryan
On Sat, Jul 08, 2000 at 10:47:40AM -0400, Dan Krumlauf wrote:
> Erik Stainsby wrote:
> >
> > Eric,
> >
> > You will not be able to redirect programmatic flow from a
> > child window back to the parent window. You can spawn a
> > child because the parent "knows how to" - there is no
> > mechanism in the protocols that I've ever come accross
> > which would allow the child to return control to a parent
> > browser.
>
> I guess I might be confused but doesnt the TARGET entity in the
> html protocol access the parent window from a child window.
> I mean if you pop a window and in that child window you have
> a <A HREF="URL" TARGET="parent_window_name"></A> link, when you
> click the
> link it will refresh the parent window to grab the url. So you should be
> able to use the document.window object in javascript to both update the
> parent window and close the popup.
>
> Simple javascript psudeo code would be:
>
> document.parent_window_name.location.href=new url
> document.child_window_name.window.close()
>
> or something close to that
>
> And then use a javascript url in the link in the child window
> like <A HREF=javascript:function()>CLOSE ME</A>
>
> Seems that should work. Can anyone tell me why it wouldnt work or if it
> does work post the code?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---end quoted text---