Web Layout
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignWeb Layout

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 26th, 2005, 05:59 AM
shem's Avatar
shem shem is offline
Shemzilla
ASP Free Loyal (3000 - 3499 posts)
 
Join Date: Aug 2005
Location: Table View, Cape Town, S.A
Posts: 3,380 shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)shem User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 17744 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 5 Days 1 h 2 m 42 sec
Reputation Power: 531
includes vs iframe ??

hi all

I use alot of Iframes, advantages are you never have to reload your header and navigation coz i just have the content open up in the iframe, now i know the disadvantage is that when a page is searched and opened up it won't be in the iframe making it look like a lost page

now i hear everyone talking about using includes for headers, navigation and footer, now as far as i understand the advantage of this is that it looks like a framed page, you only have to update one page to change the header throughout the site, like a framed site, but every time you click on a link the whole page (headers, nav, footer) has to load again right?

so which one is better?

Reply With Quote
  #2  
Old August 27th, 2005, 03:17 AM
baseballdude_'s Avatar
baseballdude_ baseballdude_ is offline
Expert Learner
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2005
Location: Wisconsin
Posts: 1,890 baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)baseballdude_ User rank is Second Lieutenant (5000 - 10000 Reputation Level)  Folding Points: 22104 Folding Title: Starter FolderFolding Points: 22104 Folding Title: Starter Folder
Time spent in forums: 1 Week 5 Days 13 h 36 m 9 sec
Reputation Power: 70
Send a message via AIM to baseballdude_ Send a message via MSN to baseballdude_ Send a message via Yahoo to baseballdude_ Send a message via Google Talk to baseballdude_
It depends, really. iframes can display another website's information, something include's can't. If you are passing information from the include, you can only do that with an include, not an iframe.

Yes, an include has to be loaded on each page, but it gets cached and loads extremely fast after a while.

The main advantage for iframes is that you can use them in just plain HTML code, includes must be used in server side code.

My suggestion: If you have server side code available, use includes. If not, use iframes.

Reply With Quote
  #3  
Old August 27th, 2005, 03:58 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
BBD: Actually, some server software, such as PHP, does allow you to import HTML from external sources.

Reply With Quote
  #4  
Old August 27th, 2005, 08:10 PM
summy summy is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 63 summy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 59 m 36 sec
Reputation Power: 5
Another advantage for includes is that elements in the included file can be easily accessible using javascript on the page. You may not need this if you only use includes in a header, but in general , includes are better.

Reply With Quote
  #5  
Old August 27th, 2005, 08:22 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
If you want to be both pedantic and semantic about things, the <iframe> element is actually intended for stuff like shoutboxes, rather than actually "importing page elements".

Of course, the whole "frames" thing is depreciated, you shouldn't use them unless strictly necessary.

Reply With Quote
  #6  
Old September 22nd, 2005, 02:07 PM
shadowspell's Avatar
shadowspell shadowspell is offline
I'm baack!!
ASP Free Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: In a suburb of Atlanta, GA, in front of the computer.
Posts: 161 shadowspell User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 35 m
Reputation Power: 5
Quote:
Originally Posted by Phoenix
If you want to be both pedantic and semantic about things, the <iframe> element is actually intended for stuff like shoutboxes, rather than actually "importing page elements".

Of course, the whole "frames" thing is depreciated, you shouldn't use them unless strictly necessary.


In light of the deprecation of frames, what would be the alternative (practical) solution for importing external content into a web page?

Reply With Quote
  #7  
Old September 22nd, 2005, 03:14 PM
Phoenix's Avatar
Phoenix Phoenix is offline
Web-Standards Evangelist
ASP Free Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Posts: 1,522 Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level)Phoenix User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 23 h 48 m 4 sec
Reputation Power: 8
Server-side, of course.

And if you want content to stay at the same position on the page as you scroll, use position: fixed; (or Javascript for IE < 7)

If you want a scrollable box on your website, give a box a width and height and set overflow: auto;

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignWeb Layout > includes vs iframe ??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT