Connecting Tech Pros Worldwide Help | Site Map

Iframes - Pros/Cons

Member
 
Join Date: Feb 2007
Posts: 70
#1: Jul 11 '07
I am considering using an Iframe to set my websites menu. I want to do this so that I only have to change just the frame page and have the entires sites menu updated. I may also do this my footer to make it more easily updatable.

However, I have heard that using Iframes for this purpose sometimes doesn't work well. Though, no one has offered any reason as to why this is true.
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,561
#2: Jul 11 '07

re: Iframes - Pros/Cons


Frames and iframes Some claim problems with search engines in addition to the fact that iframes have most of the same problems as frames.
Member
 
Join Date: Feb 2007
Posts: 70
#3: Jul 11 '07

re: Iframes - Pros/Cons


Perhaps I will avoid them for now.

Maybe a Javascript or PHP setup would be better.
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#4: Jul 12 '07

re: Iframes - Pros/Cons


Quote:

Originally Posted by Christopera

I am considering using an Iframe to set my websites menu. I want to do this so that I only have to change just the frame page and have the entires sites menu updated. I may also do this my footer to make it more easily updatable.

However, I have heard that using Iframes for this purpose sometimes doesn't work well. Though, no one has offered any reason as to why this is true.

I would consider using templates because they works great. I have a 650 website based on two templates.
Very easy to update esp menus, only draw back is if you change a webpage name ie sales.htm, and you have a menu that contains sales.htm you have to remember to change that menu, otherwise it will not do it for you.
Good part is if you want to change or add anything in a menu it will update all the webpages for you.

nomad
PS did that make any sense...
Member
 
Join Date: Feb 2007
Posts: 70
#5: Jul 14 '07

re: Iframes - Pros/Cons


I'm not sure that made any sense.

I use a template for each page, yet, everytime i need to change the menu to add a link i have to change every page. This is why i wanted to do an iFrame.
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#6: Jul 14 '07

re: Iframes - Pros/Cons


Quote:

Originally Posted by Christopera

I'm not sure that made any sense.

I use a template for each page, yet, everytime i need to change the menu to add a link i have to change every page. This is why i wanted to do an iFrame.

Question What application are you using ie Dreamweaver...
if you make a template and make any changes and you save the changes the template should automatic change every page related to that template. That is the beauty of a template. Sounds like you have a Frame...
An Iframe can not do that.

nomad
Member
 
Join Date: Feb 2007
Posts: 70
#7: Jul 14 '07

re: Iframes - Pros/Cons


Oh, I use Crimson Editor but also have GoLive. I am not sure that Crimson does this.

I see what you are saying now. Perhaps I will try this in GoLive.
nomad's Avatar
Expert
 
Join Date: Mar 2007
Location: CA.
Posts: 570
#8: Jul 14 '07

re: Iframes - Pros/Cons


Quote:

Originally Posted by Christopera

Oh, I use Crimson Editor but also have GoLive. I am not sure that Crimson does this.

I see what you are saying now. Perhaps I will try this in GoLive.

You should have a section where you can for editable area an no-editable area.
The no-editable are your menus, and headers and of course the editable section are the text and images and footers.

good luck
nomad
Newbie
 
Join Date: Jul 2007
Posts: 11
#9: Jul 21 '07

re: Iframes - Pros/Cons


Dreamweaver templates vs iframes.
If you use a template to incorporate common content into several pages, whenever you change a the template, DW has to update every page that uses the template, and you have to upload all those pages.
When you use an iframe to incorporate common content (as a separate html page) into several pages, changing that one common "page" is enough. Uploading that one common page will update every page that incorporates it via an iframe.
Although Dreamweaver will take care of ensuring that everything necessary is uploaded, it still has to be done.
It is up to you to decide whether any disadvantage of using iframes outweighs the benefit of simplicity.
Newbie
 
Join Date: Jul 2007
Posts: 3
#10: Jul 24 '07

re: Iframes - Pros/Cons


Alternatively can you not just have all the menus read a common XML file? This way a simple change to the XML means only one file to upload.
Reply


Similar HTML / CSS bytes