Current location: Hot Scripts Forums » General Web Coding » JavaScript » How to force a page into an iframe...but?


How to force a page into an iframe...but?

Reply
  #1 (permalink)  
Old 02-22-08, 05:16 PM
TrueKnight TrueKnight is offline
New Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How to force a page into an iframe...but?

I have a bit of a problem. I have build my website around an iFrame. There are two different versions...ala two different home pages (index.php and home.php) depending upon which version you choose at a splash screen (highband or lowband).

Here's the problem. I need to make all of the child pages incapable of being viewed outside of it's intended iFrame. The problem is, if I use the standard Javascript for forceing a page into it's intended iFrame then I can't also let it be viewable in the alternate iFrame, depending upon user choice.

Is there a way for the script to point to a default parent page but allow the child page to also be viewed in the alternate parent? So, if you found the page outside of my site it would always load the page into the default parent page. But if you came in the front door of my site, via the splash page you would have the option to view that same file within either of the parent pages...depending upon choice (highband or lowband).

Is that clear???

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-22-08, 09:44 PM
TrueKnight TrueKnight is offline
New Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nevermind... I found a script that works perfectly.
Reply With Quote
  #3 (permalink)  
Old 02-23-08, 02:27 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Mind sharing the link, in case someone is looking for the same?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 11:33 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.