Click to See Complete Forum and Search --> : Menus


cnh
08-04-2004, 06:01 AM
I am trying to write a page which has a menu in one div, and the rest of the content in other divs [no frames or tables!].

The site will consist of many pages leading from the index page, and the menu will point to these other pages.

In each of these other pages I would also like the menu div present, so you don't have to go back to the main page first before going to others.

Unfortunately, this means each time the menu is updated, I have to rewrite and upload each individual page.

The solution I would really like is to be able to load the menu details into the div externally. Sadly, I know little or nothing about server side scripts. Are there any other ways?

Nicholas Hill

gil davis
08-04-2004, 06:15 AM
Here is a link that gives information about reading a text file:

http://www.faqts.com/knowledge_base/view.phtml/aid/1268/fid/126/lang/en

It also mentions using a hidden iframe which would be supported by all DOM-compliant browsers.

spufi
08-07-2004, 12:25 AM
Originally posted by gil davis
Here is a link that gives information about reading a text file:

http://www.faqts.com/knowledge_base/view.phtml/aid/1268/fid/126/lang/en

It also mentions using a hidden iframe which would be supported by all DOM-compliant browsers.

Bah. I would go the server side route. That javascript based version, if I read it correctly, isn't going to work if JavaScript is disabled. Even then, it's more more code than what is really needed.

Include on every page (http://httpd.apache.org/docs/howto/ssi.html#includingastandardfooter)

David Harrison
08-07-2004, 04:30 AM
Originally posted by cnh
I am trying to write a page which has a menu in one div, and the rest of the content in other divs [no frames or tables!].Since a menu is a list of links, rather than <div>'s use unordered lists (<ul>). A good menu that does this is UDM4 (http://www.udm4.com/).