menu as a function

Post your questions and problem reports here.
Post Reply
bhs668
Posts: 1
Joined: Fri Jan 22, 2010 11:45 pm

menu as a function

Post 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!!
Mitch
Posts: 7
Joined: Fri Nov 20, 2009 12:13 am

Re: menu as a function

Post 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. ... 481#p15387

I hope this helps.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: menu as a function

Post 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.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply