Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2006, 05:18 PM   PM User | #1
esthera
Senior Coder

 
Join Date: May 2004
Posts: 1,431
Thanks: 14
Thanked 0 Times in 0 Posts
esthera can only hope to improve
iframe issue

I have a page with a link that the link changes the target of an iframe.
Teh problem is if someone copy and pastes that link then they get straigt to the iframe and not in the context of teh site.

Is there anyway I can know if they are seeing the page in the iframe or as a parent page. (In this way if they are not seeing it in the iframe then I would give them a message saying so)
esthera is offline   Reply With Quote
Old 12-06-2006, 07:07 PM   PM User | #2
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
You need the iframe page to check if it is in the top browser window, if it is then it needs to load its parent page and then itself into the iframe.

You can see an example here

http://www.huntingground.freeserve.c...e_autoload.htm
__________________
The silent one.

The most dangerous thing in the world is an idea.
The most dangerous person in the world is the one with an idea.
Mr J is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

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

Forum Jump


All times are GMT +1. The time now is 12:39 AM.


Advertisement
Log in to turn off these ads.