Re: Redirection to a named frame
| From: | Martin Helie | Date: | Sat, 03 Jan 2004 18:33:47 +0000 |
| Subject: | Re: Redirection to a named frame | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173689@lists.php.net to get a copy of this message | ||
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'
\)]GbsŒÌ
> TÔ);
>
> 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