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/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to