Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-01-07, 05:42 PM   #1
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Question frameset/subframe question

[sorry - I'm lazy - I'm sure I could find it on Google]

What script or function makes sure that if somebody tries to enter on a framed web site into a sub-frame, that the entire frame set is loading?

Typical sample set-up: top header frame, left navigation frame, large center content frame; someone links (only) to the center content frame, but when a visitor enters I want to make sure that all 3 frames are displayed!

THANX!
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2005-01-07, 06:01 PM   #2
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
[sorry - I'm lazy - I can't be bothered answering!]



DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2005-01-07, 06:11 PM   #3
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Put this between your head tags. Replace the Apple URL with the URL of your frame set.

<script language="JavaScript">
<!--
onload=function(){
if( document.location == top.location ) {
top.location.replace("http://apple.com/");
}
}
//-->
</script>
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-01-07, 06:53 PM   #4
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
I think there is also a <BASEFRAME> type tag you can use..

but I am unsure of the syntax...

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2005-01-07, 08:29 PM   #5
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Thanks, Cleo! I'll give it a try...

Quote:
Originally posted by DangerDave

[sorry - I'm lazy - I can't be bothered answering!]

I think there is also a <BASEFRAME> type tag you can use..

but I am unsure of the syntax...

DD
Alright - I googled that one - but it doesn't seem to exist... Wishful thinking?
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2005-01-07, 08:44 PM   #6
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
The only problem with mine is that if they have javascript turned off it doesn't work.

This is how Adobe does it in Photoshop's help files so I'm guessing it is about the best way to do it even if there is another way of doing it.

I love/hate frames.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-01-07, 09:04 PM   #7
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Depending on the site... you could put the framses in a sub-dir and htaccess surfers back to the index?

just a thought...

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:57 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc