Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Closed Thread
 
LinkBack Thread Tools
Old February 29th, 2004, 05:32 AM   #1
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
html menu problems

I am making a webpage and have run into a problem. The site has a menu list that I want to be on each webpage. The problem is each time I add a new item to the menu or change an item I would have to go through every other webpage and change the menu on those to. How can I make it so I can use that one page, and just update that page so it will apply to all other pages. Can it be done without frames?[:
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 05:53 AM   #2
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
I think the answer here is to use server side includes (SSI). This will be easy for you if you have ASP/JSP/PHP or other scripting languages available on the server.

Failing that, then I'm afraid you are gonna be stuck with either referencing a javascript (to write out the menu) or frames..... both of which are an extremely BAD idea.

SSI is the way to go.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 06:14 AM   #3
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
If your server doesn't support SSI, but you do have Dreamweaver, then you can also use Dreamweaver templates. This allows you to modify the template and then dreamweaver changes all the pages in your site for you.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 09:04 AM   #4
Reputable Member
 

Join Date: Aug 2003
Location: Singapore
Posts: 318
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 gwx03 will become famous soon enough
What you could do is to have the javascript made into a .js file which reduces the hassle of "copying and pasting" code. Then all you have to do for the menu is to just 'copy and paste' the code. Another method is to make the menu Flash, so all you need is some code to tell the browser to load your flash movie.
gwx03 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 05:11 PM   #5
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
Thanks for all the suggestions. I have tried SSI, but it doesn't work for me. I am designing this page on my home computer so i'm not sure if SSI or shtml would work for me. I guess the next thing I should try if javascript, but I have no idea where to begin. Does anyone know how to update multiple pages with javascript? It seems so easy in SSI, a shame it doesn't work.
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 05:45 PM   #6
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
I got it working with javascript, but im not sure if this would be the best way to do it. What if someone doesnt have javascript working, then they wouldn't be able to navigate the site. Is there another way or is javascript the best way?
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 08:41 PM   #7
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
javascript is a 'LAST' resort.... search engines can't spider your site with javascript navigation.

SSI is really the best option.... try and get it going.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old February 29th, 2004, 08:51 PM   #8
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
Can SSI work on a home computer? I followed a guide on how to use SSI, but it doesn't work for me. I'm not sure how to check if my computer supports it. I'm also not sure if my ocmputer supports shtml either.
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 12:05 PM   #9
Highly Reputable Member
 
benbacardi's Avatar
 

Join Date: Feb 2004
Location: United Kingdom
Age: 22
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 benbacardi will become famous soon enough
so what is so bad about javascript menus?
benbacardi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 12:27 PM   #10
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
to answer that question (again), i'll just quote myself:-<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">javascript is a 'LAST' resort.... search engines can't spider your site with javascript navigation.<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 04:39 PM   #11
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
chobo - The answer to your question depends entirely on what server you're running. IIS or apache or another?
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 05:28 PM   #12
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
I'm not running any server I haven't uploaded my site to any hosting services yet. Right now it's just on my home computer with winxp pro running. I was looking around for another way to make my website "dynamic". It has to do with renaming my index.html -> index.php and making some include.headers and footer files. I'm not sure on exactly how to do this yet. But I think the concept behind it is to make one page a master template with which you can change, and control the layout for all you pages through that one page. As for the fonts, colors etc that is handled through CSS.

If anyone knows exactly how to use php to create a template could you please show me an example. Other sites I have found tend to leave out some stuff that newbs like myself can't pick up on.
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 06:35 PM   #13
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
Ok, to use PHP or SSI (SHTML) you would have to install a server such as IIS or apache.

IIS is much easier on Windows XP Pro. You can install it by going to add/remove programs > add/remove windows components and selecting Internet Information services and pressing next, etc.

IIS automatically runs ASP which is similiar to PHP and can do basic include statements like SSI as well as far more complex coding. This site (webforumz) for example, runs on ASP.

Alternatively you can get some webspace that supports the language of your choice.

Once you've decided which avenue you want to go down, let us know and we'll help you further.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 1st, 2004, 11:03 PM   #14
New Member
 

Join Date: Feb 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 chobo is on a distinguished road
I installed IIS like you said. I then tested that SSI example from a website, and it still doesn't work. Is there something else I need to do after I install IIS?
chobo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Old March 2nd, 2004, 03:47 AM   #15
WebForumz Admin Badge
 

Join Date: Jul 2003
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 118 Webforumz Staff is on a distinguished road
I don't know if SSI works by default on IIS - Guys? Help me here!

If not then you'll have to use ASP includes instead.
Webforumz Staff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Bookmarks

Tags
html , menu , problems


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Menu problems CSS danny322 HTML, XHTML and CSS 1 February 22nd, 2008 03:49 PM
Problems with flash menu in FF afowler HTML, XHTML and CSS 4 December 19th, 2007 11:04 AM
Problems with menu Francesca15 HTML, XHTML and CSS 2 May 10th, 2007 11:19 AM
Menu problems in IE7 alsdevelopments HTML, XHTML and CSS 6 April 5th, 2007 11:57 AM
Drop down menu problems matelo JavaScript 0 January 16th, 2006 12:48 PM


Search Engine Optimization by vBSEO 3.2.0 RC8