HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 9th, 2000, 10:22 AM
awebguy awebguy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 awebguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to awebguy
Hi All,

If a page is out of a frameset, whats the best method for detecting it's not in a frameset and auto reloading itself into the correct frame. We've usd GOTO URL and Custom JS but it's not perfect. Help would save further frustration.

Thankyou

Reply With Quote
  #2  
Old November 10th, 2000, 05:39 PM
tmix tmix is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 2 tmix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to tmix
If you define your frameset for a section of the site with the file frmset.html, you can use JavaScript to see if a page is within a frameset defined by that file. If it isnt you can then set the location to be the initial frameset document. The script here shows how this might be done. Just place it within in the <head> tag of all the framed documents.

<script>
<!--
var containingwindow = top.location.pathname.substring((top.location.pathname.lastIndexOf("/"))+1).
toLowercase();

if (containingwindow!="frmset.html")
top.location.replace("frmset.html");

//-->
</script>

This script will not work if the user has gone deep into a frameset, as the regenerated frameset will point to the initial document in the frameset.


Hope this helps

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Pages indexed out of frameset


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway