Go Back   Webmaster Tips and Tricks Forums - web master resources > Develop the site > Programming

Programming Discuss the code, get ideas, present your own coding.

View Poll Results: <iframe> Do you use it?
Yes 6 42.86%
No 8 57.14%
Whats <iframe>? 0 0%
Voters: 14. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #1  
Old 10-10-2006, 01:11 AM
KingTiger's Avatar
KingTiger KingTiger is offline
Super Moderator
Designer
 
Join Date: Jan 2006
Location: Nogales, AZ
Age: 22
Posts: 412
Rep Power: 0
KingTiger is an unknown quantity at this point
Default iframe do you use it?

So do you use the <iframe>, If so what do you use it for?
If not why not?

KingTiger
__________________
KingTiger's Hangar About the Game Hardwar
Reply With Quote
  #2  
Old 10-10-2006, 08:26 AM
dojo's Avatar
dojo dojo is offline
dojo
Site AdminWtricks GURU
 
Join Date: Sep 2008
Location: Romania
Age: 31
Posts: 5,667
Rep Power: 0
dojo is an unknown quantity at this point
Default

I used it for some projects when I didn't have php support only HTML. So that i don't have to re-work all the pages when making a change in the layout (something I do quite often as you can see ), I used iframe.
__________________
Don't forget to read our rules!
The Ad Broker - sell / buy ads. FREE listings
Reply With Quote
  #3  
Old 10-10-2006, 09:30 AM
Ant's Avatar
Ant Ant is offline
Senior member
Expert
 
Join Date: Sep 2005
Location: Christchurch, UK
Age: 29
Posts: 1,006
Rep Power: 0
Ant is an unknown quantity at this point
Default

Not for a while, use DIVs now for the sort of thing i used to use Iframes for.
__________________
Funny Children's Quotes *NEW*
Christmas Loans*NEW*
Reply With Quote
  #4  
Old 10-10-2006, 04:29 PM
Gibbon*RS's Avatar
Gibbon*RS Gibbon*RS is offline
Aspiring expert
 
Join Date: Mar 2005
Location: Merksplas
Age: 21
Posts: 805
Rep Power: 0
Gibbon*RS is an unknown quantity at this point
Default

It's indeed better to use divs (with an overflow option) instead of iframes. SEO, you know. If you really need that content to load seperately from the page, that's where AJAX comes in.
__________________
This time it's personal.
Reply With Quote
  #5  
Old 10-10-2006, 06:38 PM
KingTiger's Avatar
KingTiger KingTiger is offline
Super Moderator
Designer
 
Join Date: Jan 2006
Location: Nogales, AZ
Age: 22
Posts: 412
Rep Power: 0
KingTiger is an unknown quantity at this point
Default

I use iframes to include another site or page. on one of my pages.
i dont know how to do it with php or divs.

but i do use php to add the header & footer. so theres only one header file and only one footer file, makes it alot easyer. i also use php to add things like site name incase i change it part way though designing the site. or any other text that is all over the site.

KingTiger
__________________
KingTiger's Hangar About the Game Hardwar
Reply With Quote
  #6  
Old 10-10-2006, 09:21 PM
compfreak986's Avatar
compfreak986 compfreak986 is offline
Sleepy
Aspiring expert
 
Join Date: Apr 2005
Location: Belgium
Age: 19
Posts: 726
Rep Power: 0
compfreak986 is an unknown quantity at this point
Default

I used an iFrame once.
Now divs with overflow: auto and javascript(AJAX).
__________________
Earn Cash online? Follow my experiences
Reply With Quote
  #7  
Old 10-12-2006, 07:48 PM
eviL<3's Avatar
eviL<3 eviL<3 is offline
Beginner designer
 
Join Date: May 2006
Posts: 223
Rep Power: 0
eviL<3 is an unknown quantity at this point
Default

Quote:
Originally Posted by compfreak986
Now divs with overflow: auto and javascript(AJAX).
That's why i don't use them
__________________
phpBBModders.net
Reply With Quote
  #8  
Old 02-28-2007, 01:24 PM
dojo's Avatar
dojo dojo is offline
dojo
Site AdminWtricks GURU
 
Join Date: Sep 2008
Location: Romania
Age: 31
Posts: 5,667
Rep Power: 0
dojo is an unknown quantity at this point
Default

Just started using a php based template with includes and it works OK.

Code:
 <?php 
include "header.tpl" 
?> 
Here goes my main site's pages and info
<?php 
include "footer.tpl" 
?>


www.cssm.ro

It's nice this way .. I can still work on the layout from the header/footer includes ..
__________________
Don't forget to read our rules!
The Ad Broker - sell / buy ads. FREE listings
Reply With Quote
  #9  
Old 02-28-2007, 05:00 PM
Jimmy0's Avatar
Jimmy0 Jimmy0 is offline
Super Moderator
Know-it-all
 
Join Date: Mar 2005
Location: England
Age: 19
Posts: 1,414
Rep Power: 0
Jimmy0 is an unknown quantity at this point
Default

It's lovely using php includes on things like the header, so if you decide to change one link, image or something you only have to edit one file and not spend ages going through each individual file and then changing the link.
Reply With Quote
  #10  
Old 02-28-2007, 11:31 PM
bdude's Avatar
bdude bdude is offline
Aspiring expert
 
Join Date: Aug 2006
Location: australia
Posts: 645
Rep Power: 0
bdude is an unknown quantity at this point
Default

You could use another templating system.
Or you could use the dynamic include script from pootato.org - it makes things easier
__________________
The Blogging Café - Blogging Forum
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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



All times are GMT +1. The time now is 08:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
Theme redesigned by Dojo Design. © 2005, 2006 Dojo Design & Wtricks.com