Re: Anyone know how this would be done?
| From: | Richard Baskett | Date: | Fri, 11 Apr 2003 17:31:32 +0000 |
| Subject: | Re: Anyone know how this would be done? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143544@lists.php.net to get a copy of this message | ||
My original answer is the only one that I can think of that would work. Use
a header redirect to a page that only has a javascript on it that will take
variables you send through the header direct and then reloads the page into
the entire window instead of just the frame.. you have to use javascript
though since as Leif pointed out PHP is a server side language, not a client
side.. so use javascript in those cases, BUT you can use PHP to give
javascript the certain variables it needs.
It's not a hard answer and yes it doesn¹t have much to do with PHP, barely
anything, but when you know the answer you know that.. My guess is that he's
new and he thinks that you could put something in the php header call to
tell it to use the entire page instead of just the frame.
Maybe I just have more time on my hands to answer easy questions like that
and to give him some direction in his searches for answers.. searching for
"php break frames header" isnt going to give you any type of answer that you
can use. Only knowledge of the PHP language and what Server side and client
side scripting can do, can help answer that question. When the path to your
answer is not apparent and you have idea where to start.. a little push in
the right direction can make all the difference..
My soapbox for the day! :)
Cheers
Rick
"Don't be one of those souls who says, 'If only I had my life to live over.'
Live your life in such a way that once is enough." - Walter Cunningham
>> I don't understand you guys. You obviously know the answer, but instead of
>> answering him, or ignoring the question all together, you give the guy crap.
>>
>> Perhaps next time you could say, "You do this, this and that. Next time try
>> searching google".
>>
>> To answer the original question, in HTML to break out of frames you put a
>> target="_top" statement in the <A href> tag.
>>
>> <a href=http://blah.com target="_top">
>>
>> I assume the PHP version of this is similar.
>>
>>
>> "Jason Wong" <php-general@gremlins.biz> wrote in message
>> news:200304111304.05818.php-general@gremlins.biz...
>>
>>
>>> On Friday 11 April 2003 11:57, Ben Cheng wrote:
>>>
>>>
>>>> I have a webpage that's a 2 column frame. Left frameset is a menu bar
>>>> and right frameset is the main page where things are done. Now I have
>>>> some code running on a page in the right frameset that redirects (using
>>>> header(Location:);)to a specific page. Is there a way that I can
>>>> redirect so that the destination page takes over the entire frame, and
>>>> not just show up in the right frameset?
>>>>
>>>>
>>> This is not a PHP question.
>>>
>>> google > break out of frames
>>>
>>> --
>>> Jason Wong -> Gremlins Associates -> www.gremlins.biz
>>> Open Source Software Systems Integrators
>>> * Web Design & Hosting * Internet & Intranet Applications Development *
>>> ------------------------------------------
>>> Search the list archives before you post
>>> http://marc.theaimsgroup.com/?l=php-general
>>> ------------------------------------------
>>> /*
>>> poor power conditioning
>>> */
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
> --
> The above message is encrypted with double rot13 encoding. Any unauthorized
> attempt to decrypt it will be prosecuted to the full extent of the law.
>
>