Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

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 Dev Shed Forums Sponsor:
  #1  
Old January 13th, 2005, 01:57 PM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
Website layout question

Hello,

I am designing a website with a nav bar at the top of each page with pull down menus, using dream weaver MX 2003 and layers. Is there a way to use one file for the code of the nav bar (header) and have it used on each page. I do not want to have to use the code for the nav bar on each page because if I need to change something in the code for that I will need to edit and change every page.

Any ideas??

Thanks again in advanced,

Norman

Reply With Quote
  #2  
Old January 13th, 2005, 02:01 PM
prospector prospector is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 82 prospector User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m
Reputation Power: 4
The only way to do that would be through server side includes, if your host supports them.

Reply With Quote
  #3  
Old January 13th, 2005, 02:46 PM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
How can I tell if my host supports SSI? Should I just ask them if they supports SSI or is there somthing else it's called.

Also how do I code for SSI, is there any tutorial your know of that will help?

Thanks a bunch,

Norman

Reply With Quote
  #4  
Old January 13th, 2005, 02:55 PM
paulthom paulthom is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 8 paulthom User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ask your ISP / web hosting company if they support SSI (Server Side Includes). It is unlikely as they put a big load on the server, as the web server has to look throught *every* file that it sends to clients to see if any have things that needed to be included. If a server supports SSI then the files normally have an .shtml extension.

If you web hosting server supports PHP you could use that to do the include (even if you never intend to use any other php code on your site. (remember php is embedded in html or the other way round!)

<html>
.... first bit of your page....
untill you come to the bit where you want to include your nav bar
<?php include('mynavbar.html'); ?>
.... rest of your html page ....

Note you will have to give you file .php entensions and like I said the server will have to support PHP (which should be more common that SSIs).
hoep that helps.

Reply With Quote
  #5  
Old January 13th, 2005, 03:05 PM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
Thanks alot!

This helps tons, one other question before I call, what is CGI Capabilities and ASP Capabilities, does either or both include SSI and/or PHP. My site is hosted on a unix server, that supports CGI. My hosting company has 2003 sever as well that have ASP support.

Thanks agian,

Norman

Reply With Quote
  #6  
Old January 13th, 2005, 05:27 PM
powerkor powerkor is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 92 powerkor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 23 m 51 sec
Reputation Power: 4
hmm frames and possibilly iframes? did you forget about those?

Reply With Quote
  #7  
Old January 14th, 2005, 07:32 AM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
Frames won't work because when the drop downs are opened the frame would become scolling are the top fram would have to be so big that we would waste that space.

Not sure about iframes, I will look in to that.

Thanks for to thought,

Norman

Reply With Quote
  #8  
Old January 14th, 2005, 01:59 PM
normh normh is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 19 normh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 28 m 56 sec
Reputation Power: 0
Thank you everyone for your help!!! I got it working, using PHP. Everything seems good.

Norman

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Website layout question


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 1 hosted by Hostway
Stay green...Green IT