Re: Redirection to a named frame

From: Date: Mon, 05 Jan 2004 17:14:07 +0000
Subject: Re: Redirection to a named frame
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-173766@lists.php.net to get a copy of this message
I would prefer not having to use script - is there not a way to handle this by modifying the header? Something similar to the example I found in the O'Reilly book - except which works? :) "Martin Helie" <martin@bang.ca> wrote in message news:20040103183348.54714.qmail@pb1.pair.com... > How about simply: > > echo " > <SCRIPT> > window.top.main.location= > 'http://localhost/phase1/report.php''; > </SCRIPT>"; > > ? > > "Geoffrey Thompson" <thompsgr@avaion.com> wrote in message > news:20040103060343.24567.qmail@pb1.pair.com... > > I was only able to find one reference to targeting a named frame on a > > redirection, in the "MySQL Cookbook" by O'Reilly. According to the book, > > this should work: > > > > header('Window-target: main'); > > header('Location: > > http://localhost/phase1/report.php'); > > > > But, alas, it seems to only load up the current frame (which is not main). > > > > I also tried: > > > > header('Window-target: _top'); > > header('Location: > > http://localhost/phase1/report.php'); > > > > to see if I could get it to wipe out the frameset and get back to the full > > window, but it still loaded up in the current frame. > > > > Any help would be appreciated! > > > > Thanks, > > > > Geoff

« previous php.general (#173766) next »