Frame structure

This is a discussion on "Frame structure" within the JavaScript Forum section. This forum, and the thread "Frame structure are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 7th, 2007, 20:23
WLQ WLQ is offline
New Member
Join Date: Oct 2007
Location: uhioio
Age: 15
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Frame structure

I wan't to make a frame on my page, but if someone open the frame just frame page fx. frame.html he will be rediricted to page fx. index.php

I mean so the frame page cannot be opened without the whole page.

Ex.
My page is (index.php) there is a frame (content.php). Opening (content.php) in new window or tabs you will be rediricted to (index.php).

THANKS!!!
Reply With Quote

  #2 (permalink)  
Old Oct 8th, 2007, 09:56
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Frame structure

This can be achieved with a javascript check but it's not a good idea to control the browser like this and frames aren't the best choice either.

Say for the page content.php is located in the frame called content.

To check and make sure you're in the frameset you can use

Code: Select all
if (!top.content)
    location.href = 'index.php';
replacing '.content' with the actual frame name and 'index.php' with the main page.

Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
EASY PEASY Displaying frame address in another frame question molotov JavaScript Forum 3 Nov 20th, 2007 17:29
Website Structure marSoul Website Planning 4 Oct 11th, 2007 19:31
blog structure alexgeek PHP Forum 25 Aug 26th, 2007 01:23
Simulating a frame structure with CSS Krakatoa Web Page Design 2 Mar 2nd, 2006 07:10


All times are GMT. The time now is 05:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43