Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:53

DEFINING A BASE URL


Poster: yes2work1
Dated: Tuesday October 3 2006 - 10:55:55 BST

Hi

I am having problems using relative paths within our milonic installation. I have defined a global variable within menu_data.js called baseurl which contains a string which represents the base URL for the site where milonic will be used on our server.

My question is how I concatenate the contents of this baseurl variable onto the front of the URL parameters which are used to set the URL’s for each of the menu items i.e.

Code:
aI("text=Staff Directory |;url=cpdocs/stafflist.htm;");


Thanks in advance



Neall McLaren
ICT Assistant


Yes2work Ltd.
The Acorn Centre
51 High Street
Grimethorpe
Barnsley
S 72 7BB


Website: http://www.yes2work.org.uk
Email: nmclaren __at__ yes2work.org.uk

Base URL


Poster: yes2work1
Dated: Tuesday October 3 2006 - 14:53:36 BST

Solved it using this code segment

Code:
aI("text=Address / Telephone Lookup;url="+baseurl+"sites/telephoneLookup.htm;");


Not too hard really was it? just having a bad day :-)

Cheers


Poster: kevin3442
Dated: Tuesday October 3 2006 - 15:45:53 BST

And that's the exact way to do it. Nicely done! Seems your day is improving ;)

Kevin