Web Design and Development Forums

Alternative to frames

This is a discussion on "Alternative to frames" within the HTML Forum section. This forum, and the thread "Alternative to frames are both part of the Design Your Website category.

Old May 8th, 2008, 18:17   #1 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Post Alternative to frames

Hi!

I'd like to know what the best alternative to frames is. Assuming I have a VERY large basic HTML page that I wish to split so that I have permanent navigation on the left, header on the top, and main text content in the remaining space (split into pages as I would if I were using frames - the idea is to prevent having to load this enormous html page all in one go).

As well as this, I'd like to reference specific text content from other parts of my website (which I don't think is possible with standard frames, if it is then please do tell me how!), so that I come to this page with the nav and header but the requested content already there.

I'm thinking PHP, but I don't know much about that and do not have time to learn it.

Suggestions please?

Last edited by jonnymorris; May 8th, 2008 at 18:19.
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2008, 19:14   #2 (permalink)
Junior Member
 
Join Date: Feb 2008
Location: Michigan
Posts: 23
Re: Alternative to frames

There's a few options with CSS. For one, you could do everything with DIVS - and put the long content into a div that's set with "overflow: scroll"

http://www.w3schools.com/Css/pr_pos_overflow.asp

Another option would be to code your nav and other elements to remain fixed ("position: fixed") keeping at a specific place(s) on the screen. Then your long content would be placed in as usual, and the user would scroll as usual. The fixed elements would always be visible.

As for linking to parts of the text content, the only way I can think of to do this is to use in-page links - for example, you could add '<a name="[key]"></a>' in appropriate places in the text, then link to those spots with '<a href="[page]#[key]">link text</a>.
awatson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2008, 19:29   #3 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Re: Alternative to frames

Thanks for the suggestions, but I'm really looking for a way to avoid having to load all of the text in at once.
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2008, 20:20   #4 (permalink)
Junior Member
 
Join Date: Feb 2008
Location: Michigan
Posts: 23
Re: Alternative to frames

Then you'll probably need to do it manually or use php to come up with someway to chop up the content, probably at defined places like chapters or something.
awatson is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2008, 22:08   #5 (permalink)
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 46
Re: Alternative to frames

This could be a difficult one. How about using toggle buttons to categorise your information? Yes the information would be there, but more structured. Failing that (as much as I avoid using frames), you can't beat an iframe to tidy up the page.

mwdesign
mwdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 8th, 2008, 22:15   #6 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Re: Alternative to frames

Quote:
Originally Posted by mwdesign View Post
This could be a difficult one. How about using toggle buttons to categorise your information? Yes the information would be there, but more structured. Failing that (as much as I avoid using frames), you can't beat an iframe to tidy up the page.

mwdesign
Could you sum up the difference between frames and iframes for me, or is it complicated?
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2008, 01:53   #7 (permalink)
Up'n'Coming Member
 
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 88
Re: Alternative to frames

CSS, with Header, MainColumn, NavColumn and Footer will split it up nicely for you.
Then use SSIs to store the contents of the Header, NavColumn and Footer, that will leave you to deal only with the MainColumn.
shalom_m is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2008, 07:38   #8 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Re: Alternative to frames

Quote:
Originally Posted by shalom_m View Post
CSS, with Header, MainColumn, NavColumn and Footer will split it up nicely for you.
Then use SSIs to store the contents of the Header, NavColumn and Footer, that will leave you to deal only with the MainColumn.
Can SSI be used to load individual pages for the main column, without reloading an entire new page? Like with frames, but not using HTML frames.
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 9th, 2008, 20:41   #9 (permalink)
Up'n'Coming Member
 
Join Date: Apr 2008
Location: Or-Yehuda, Israel
Age: 60
Posts: 88
Re: Alternative to frames

Yes and no.
The end result is the same, the logic different.
You load the new HTML and it loads the old SSI's.
shalom_m is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 08:25   #10 (permalink)
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 46
Re: Alternative to frames

Quote:
Originally Posted by jonnymorris View Post
Could you sum up the difference between frames and iframes for me, or is it complicated?
Frames and iframes (Inline frames) are pretty much the same. They call a url into the frame. The main difference is:

An iframe is manually sized, you input its width and height - so brings up the scroll bars if content is larger then the iframe.

A frame would size itself relative to the browser window.

mwdesign
mwdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 08:41   #11 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Re: Alternative to frames

Quote:
Originally Posted by mwdesign View Post
Frames and iframes (Inline frames) are pretty much the same. They call a url into the frame.
So I would still not be able to link to my single frames (or iframes) page with targeted content in the main column? Instead of the default intro page, I mean.
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 08:55   #12 (permalink)
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 46
Re: Alternative to frames

You can put the frame wherever you like in your design as long as the proportions fit your design, an iframe will pull it to pieces if its over your column size.

mwdesign
mwdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 09:03   #13 (permalink)
Up'n'Coming Member
 
Join Date: Jul 2007
Location: UK
Posts: 89
Re: Alternative to frames

Quote:
Originally Posted by mwdesign View Post
You can put the frame wherever you like in your design as long as the proportions fit your design, an iframe will pull it to pieces if its over your column size.

mwdesign
That's not what I meant. I mean that if I have a page on my site that links to this page with iframe(s), can I say that I want a specific html page to appear in the main column iframe instead of the default intro page which would be there if I had just gone straight to the page with iframes normally?
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 10th, 2008, 09:23   #14 (permalink)
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 46
Re: Alternative to frames

Ah I see you want to target the iframe from another page but not have it load up its initial content but the new content you have specified from a link on another page. Thats more difficult but I think can be made possible with some javascript. Try this link:

http://www.dynamicdrive.com/forums/a...p/t-12308.html
__________________
Checkout mwdesign: www.mwdesign.me.uk
mwdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
frames html php

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative for AdSense? Doc Great Adsense & Pay Per Click 10 Aug 30th, 2007 07:27
Alternative to Site5? SmokeyBubbles Hosting & Domains 7 Jun 27th, 2007 16:32
ppc alternative timmytots Webforumz Cafe 0 Dec 15th, 2006 17:27
Alternative CSS Selection (IE) Andy K CSS Forum 3 Jul 30th, 2005 04:31
htaccess alternative simonneaves PHP Forum 6 May 10th, 2005 16:52



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:23.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59