This is a discussion on How to redirect parent frame? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I have a main page with a iframe in it, if i send the redirect header (header ('Location: ' . $url);) the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a main page with a iframe in it, if i send the redirect header
(header ('Location: ' . $url);) the new page loaded in the the iframe. How do I redirect with the change apply to the whole page instead of just the iframe? Basicly I want to get the php version of javascript line window.location="http://www.yourdomain.com/"; Thanks |
|
|||
|
Got it !!
PHP is a server side script it can't tell where the browse put its stuff. For those interested, I work around it by place and echo of a javascript statement. // this only work for ie i think, netscape and mozilla use diff command echo '<script> window.top.location="' . $url . '"; </script>'; "Du" <vietquest@hotmail.com> wrote in message news:NdWdnS-sTsmi0pvfRVn-vg@rogers.com... >I have a main page with a iframe in it, if i send the redirect header >(header ('Location: ' . $url);) the new page loaded in the the iframe. How >do I redirect with the change apply to the whole page instead of just the >iframe? > > > Basicly I want to get the php version of javascript line > window.location="http://www.yourdomain.com/"; > > > Thanks > |
![]() |
| Thread Tools | |
| Display Modes | |
|
|