Go Back   CodingForums.com > :: Client side development > JavaScript programming

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 07-08-2003, 04:53 AM   PM User | #1
coolguy
New Coder

 
Join Date: Jul 2003
Location: Houston, TX
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
coolguy is an unknown quantity at this point
how to....

if the page not in its origional frames how do you make it open something like (wrongpage.html) automaticly
__________________
Visit www.geocities.com/gamez4play
for best games
coolguy is offline   Reply With Quote
Old 07-08-2003, 08:27 AM   PM User | #2
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
As far as I know after a discussion here, there is no client-side possibility to make a separation between an "alone" and a "together with parent" opening of a child frame
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 07-08-2003, 09:53 AM   PM User | #3
ellisd5
Regular Coder

 
ellisd5's Avatar
 
Join Date: Jun 2002
Location: Uk
Posts: 160
Thanks: 5
Thanked 0 Times in 0 Posts
ellisd5 is an unknown quantity at this point
You can make sure that its in a frame, if thats any use to you

Code:
    if (self.location == top.location) {
        document.location = frameset.html
    }
ellisd5 is offline   Reply With Quote
Old 07-08-2003, 10:13 AM   PM User | #4
Kor
Red Devil Mod


 
Kor's Avatar
 
Join Date: Apr 2003
Location: Bucharest, ROMANIA
Posts: 8,478
Thanks: 58
Thanked 379 Times in 375 Posts
Kor has a spectacular aura aboutKor has a spectacular aura about
Smile

You can make sure that its in a frame, if thats any use to you


code:--------------------------------------------------------------------------------
if (self.location == top.location) {
document.location = frameset.html
}

Hm... that means, hharchester, that I can detect, after all, either a page is loaded together with its parent frame or alone?... I'll test that. It is a major problem to me, as I work mainly with iframes, and I have serious problems when a serach engine founds the iframed page and displays it alone, without its parent (which had, obviously ... teh menu )
__________________
KOR
Offshore programming
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Kor is offline   Reply With Quote
Old 07-08-2003, 12:59 PM   PM User | #5
WA
Administrator


 
Join Date: Mar 2002
Posts: 2,596
Thanks: 2
Thanked 19 Times in 18 Posts
WA will become famous soon enough
Coolguy, please read our posting guidelines regarding choosing a descriptive subject for your question and more: http://www.codingforums.com/postguide.htm
__________________
- George
- JavaScript Kit- JavaScript tutorials and 400+ scripts!
- JavaScript Reference- JavaScript reference you can relate to.
WA 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 09:53 PM.


Advertisement
Log in to turn off these ads.