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:26
Relative Path Problem
Poster: jlynn
Dated: Friday November 4 2005 - 19:45:58 GMT
Hi,
A basic newbie question:
If I have milonic_src.js and menu_data.js installed on the main directory of my webserver. What is the correct syntax for 'relative path' when I need to point to these files?
In other words.... my javascript works only if I build pages that have milonic_src.js and menu_data.js in the same directory.
I have exhausted my knowledge on how to point to these files if I have a website that is in a different directory. Please help!
Poster: Ruth
Dated: Friday November 4 2005 - 19:59:38 GMT
Hi John,
Try this post http://www.milonic.com/forum/viewtopic.php?t=4106
If all else fails, you can use full paths, which I have done a lot. Usually if the files are in your root directory, all you need is the file name, with nothing else there it should assume the root directory.
Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
With this call, it should just look in the root directory for the file.
Ruth