Re: Frames
| From: | Chris Hayes | Date: | Mon, 17 Mar 2003 12:36:30 +0000 |
| Subject: | Re: Frames | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139938@lists.php.net to get a copy of this message | ||
At 13:29 17-3-03, you wrote:
Hi, 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! either redesign your site so the top frame is included by PHP in stead of by the frame function, or in the frame you refresh add a line of javascript to refresh the topframe, e.g.$usertopframepage='page13.html'; $mainpage.= "<script><!--\n window.topframename.location.href='http://www.mydomain.org/".$usertopframepage.''; \n <//--></script>"; it is important to add the http://www.mydomain.org part because Netscape and Mozilla javascript need that.