Re: Frames
| From: | Ernest E Vogelsinger | Date: | Mon, 17 Mar 2003 12:39:28 +0000 |
| Subject: | Re: Frames | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139939@lists.php.net to get a copy of this message | ||
At 13:29 17.03.2003, shaun said:
--------------------[snip]--------------------
>I am designing a system which will have a different menu option for
>different users i.e. admin/standard etc.
>
>If I am using frames how could I change the page a user sees in the top
>frame for each different type of user? I know how to do this with standard
>pages, its just the frames that are pickling my brain!
--------------------[snip]--------------------
Either reload the master frameset containing the correct hrefs, or use
JavaScript in your main pages onLoad handler to change the location of
another frame, something like that (untested):
hFrame = parent.topframe; // topframe is the "name" of the frame
if (hFrame) hFrame.location.href = 'otherurl';
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/