Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Pros and Cons of using iframe?
Old 05-18-2009, 01:07 PM Pros and Cons of using iframe?
magicvw's Avatar
Extreme Talker

Latest Blog Post:
Ye Olde Christmas Music
Posts: 235
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
I'm thinking about using an iframe for my top menu links, but was wondering if it would in fact be foolish?

My main idea is that the same menu would appear on every page without me faffing around updating it on different pages, if i want to change it.

I've heard that iframes work better than the older non-i frames, but I'm not sure why?

Do iframes really pose any big disadvantages, re search engines etc, or are there any other issues I need to think about before doing it? Since I already have an xml sitemap with google, would it make any real difference SE wise?

Any other thoughts?

THANKS!
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
 
Register now for full access!
Old 05-18-2009, 01:24 PM Re: Pros and Cons of using iframe?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Don't use IFRAMES for a menu. User Server Side Includes, which will work even without a programming language being active. Or, if you use PHP, it is as simple as this:
PHP Code:
<?php include "includes/top-nav.php"?>
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-18-2009, 01:51 PM Re: Pros and Cons of using iframe?
magicvw's Avatar
Extreme Talker

Latest Blog Post:
Ye Olde Christmas Music
Posts: 235
Name: Vicky
Location: Brit in Bulgaria
Trades: 1
Thanks, If I understand the server side includes correctly though, my pages would then have to have shtml type extensions. I don't want to change any file names.

I'm not completely new to php but really only know a tiny amount! So I would create the menu in a file with the php extension, then just include that bit of code in the relevant place on my html page? Or would the page with the code on it have to have a php extension too?. (Sorry if the question is stupid!)
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
magicvw is offline
Reply With Quote
View Public Profile Visit magicvw's homepage!
 
Old 05-18-2009, 01:52 PM Re: Pros and Cons of using iframe?
willcode4beer's Avatar
Super Moderator

Posts: 1,533
Name: Paul Davis
Location: San Francisco
Trades: 1
I use sitemesh to accomplish this.

I suppose it all depends on the server technology you use
__________________

Please login or register to view this content. Registration is FREE

willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 05-18-2009, 04:41 PM Re: Pros and Cons of using iframe?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
So I would create the menu in a file with the php extension, then just include that bit of code in the relevant place on my html page? Or would the page with the code on it have to have a php extension too?
Like Paul points out, there are lots of solutions for lots of platforms, but for a PHP enabled configuration, the file included may be of any extension, but by default, the file calling the include may only be .php. This may be remedied with a simple change in your .htaccess (only works on Apache):
Code:
AddHandler application/x-httpd-php .php .html
which causes files with the .html (in addition to .php) extension to start up the PHP interpreter.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-18-2009, 05:26 PM Re: Pros and Cons of using iframe?
4layouts's Avatar
Skilled Talker

Posts: 66
Name: Mike McKeown
Location: St. Louis, MO
Trades: 0
I agree use SSI... better browser compatibility and you won't risk scrollbars in the middle of your pages which looks unprofessional. Its also easy to learn... just give it a try and I'm sure you can figure it out real quick.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
4layouts is offline
Reply With Quote
View Public Profile Visit 4layouts's homepage!
 
Old 05-18-2009, 09:12 PM Re: Pros and Cons of using iframe?
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
I currently use iFrame for my photo website.

I have thumbnails in a group, and a central display window that can display images or text, and the rest of the page stays the same.

Downside is, that you limit your content area to the size of the iFrame.

I'm also looking into ways to improve this - probably going with javascript.
World is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Pros and Cons of using iframe?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28395 seconds with 12 queries