Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Way To Load A Menu On Each Page

Status
Not open for further replies.

PKSIT

IS-IT--Management
Sep 1, 2006
25
US
What does everyone think is the best way to load a drop-down menu that is on the top of every page and where the menu is changed in only one location.

Obviously I don't want to change every page of the website just because i want to add something to the menu. So whats the easiest way to load that menu on every page from a different file.

I am trying to stray away from server side scripting like ASP, CGI, and PHP. We do not control our own webserver so i don't have easy access to change webserver settings. Let me know what you guys think.

Thanks in advance.
 
Does your webserver support server side includes? That would be the best way. If that's not a possibility then (oh man.... I don't even like suggesting this) you might want to consider frames.


-kaht

[small](All puppies have now found loving homes, thanks for all who showed interest)[/small]
 
If your Webserver supports them Server-Side Includes might be the best option.

Look into SSI's as they are independent of server-side languages.

However I'm curious as to why a Server-side language is out of the question. I would be surprised if your Webserver doesn't support at least one of the many server-side languages available. They have nothing to do with altering the webserver. As long as its supported. adding just a small bit of code to the pages would be enough to include the file with the menu.

I would discourage the use of frames unless its the only and i mean [red]only[/red] alternative you have.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I'm going to give SSI a shot. The reason why i'm trying to lean away from server-side scripts is because I don't really know what they support and what they don't. And i don't have access to the server to make any configurations.

I just recently had to deal with them just to get a virtual directory up for asp pages and they don't make it easy.

Can't use frames because i don't really like them and its a drop down menu so it would get cut off.

Thanks guys
 
Another option would be to use a script tag to point to an external javascript file. This would allow you to define a function to generate the menu from javascript and an array of values to add.

Course if they have javascript off then they don't get a menu, but it's another option.

 
Here's a thread that describes how to implement SSI: thread215-1285710

Mike Krausnick
Dublin, California
 
Well if they support ASP. you could use that to include the menu files.





----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top