Page 1 of 1

menu as a function

PostPosted: Fri Jan 22, 2010 11:51 pm
by bhs668
I am fairly new to html and javascript but can work may around issues and figure things out, having some other programming language experience.
I've been trying to turn the menu code into a callable function in a separate file that all the pages of my site can call. This way if I change the menu I can do it once and not on every page, as the created menu will be displayed on all pages via the call function. Can someone help step me through this? I've tried several ways but cannot get it to work.

Thanks!!

Re: menu as a function

PostPosted: Mon Jan 25, 2010 9:34 pm
by Mitch
I use PHP to include a common menu on every page.

Look at my response to this post: http://forums.blumentals.net/viewtopic.php?f=26&t=3481#p15387

I hope this helps.

Re: menu as a function

PostPosted: Mon Feb 01, 2010 11:22 pm
by Karlis
The only reasonable way to do this would be via some sorts of server side scripting includes, e.g. PHP includes or SSI if any of these are supported by your web hosting provider.