Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i check the frameset is loaded?

Status
Not open for further replies.

bosky

Programmer
Oct 30, 2003
15
IN
Hi there!!!

The main page of my site consists of 2 php pages. The left hand side consists few links, the result of this is displayed in the right hand side frame. The right hand frame again has some links which when clicked reloads the right hand side frame.

Now my problem is, everytime when the user clicks on the link form right hand side frame it should check that the frameset is loaded around it. If not it should load the frameset. The only situation when this can happen is when the user right clicks the links from right hand frame, there could be n more number of situations so need to come up with a very generalised code.So How do i keep a check on that...cant seem to come up with any decent logic....can some one help me here?


Thanks
Bosky
 
To ensure that your right-hand pages are in a frameset, you could use the following:
Code:
<HEAD>


<SCRIPT LANGUAGE="JAVASCRIPT">
if(window != top)
    top.window.location = "default.htm"  //add the location of your frameset page here
</SCRIPT>
</HEAD>
You can add to this to reload the relevant content page in the main frame.

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top