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:12
setup problem - not in root folder
Poster: nexthostbiz
Dated: Monday September 15 2003 - 11:14:01 BST
The setup seems to be very simple, and i followed all the instructions. I am wondering if the reason why the menu does not show is because i am testing the developement of this site in a non-root folder.
Here is the test page I uploaded just to see if the script works:
http://www.nexthost.biz/2871/With_FL/about.htm
the menu scripts are at:
http://www.nexthost.biz/2871/With_FL/menu/
So I placed the 2 lines of code in the header of the about script:
<SCRIPT language=JavaScript src="/menu/milonic_src.js" type="text/javascript"></SCRIPT>
<SCRIPT language=JavaScript src="/menu/menu_data.js" type="text/javascript"></SCRIPT>
As for the scriptpath line in my milonic_src.js file:
scriptpath="/menu/"
or with surrounding elements:
if(window.scriptpath+" "=="undefined ")scriptpath="/menu/";if(ns4){_sfile="mmenuns4"}else{_sfile="mmenudom"}_d.write("<scr"+"ipt language=JavaScript src="+scriptpath+_sfile+".js><\/scr"+"ipt>");
I haven't changed anything else, until i could at least get the menu to load. I want to eventuall place it vertically in a table cell, but that comes after i can at least get it to work.
Should I be placing the path to be:
/menu/
or the path from the /public_html/2871/With_FL/menu/
or from /2871/With_FL/menu/
or from root/..../
Any other ideas as to why this is not coming up?
Thanks for all your help!!!
Poster: Hergio
Dated: Monday September 15 2003 - 13:23:39 BST
Quote:
or from /2871/With_FL/menu/
This approach is what you should use. Your main URL is http://www.domain.com/2871/With_FL/about.htm and your menus are located in http://www.domain.com/2871/With_FL/menu/ right. So if I wanted to view your menu code, I would type in that last url and put milonic_src.js on the end of it, and I did that and it works. So thats how your web pages see it, you need to put a url that you yourself would use to get to the code from a browser. You scriptpath should be what I quoted above.
Poster: Andy
Dated: Monday September 15 2003 - 13:27:46 BST
The scriptpath has now been removed from the menu.
Should be easier to setup now.
Cheers
Andy
Poster: nexthostbiz
Dated: Monday September 15 2003 - 17:49:36 BST
Thanks... so i tried changing the script path to that variable:
scriptpath="/2871/With_FL/menu/";
if(window.scriptpath+" "=="undefined ")scriptpath="/2871/With_FL/menu/";if(ns4){_sfile="mmenuns4"}else{_sfile="mmenudom"}_d.write("<scr"+"ipt language=JavaScript src="+scriptpath+_sfile+".js><\/scr"+"ipt>");
and it still does not show the menu.
Same test link setup, just reuploaded the changed milonic_src.js file.
http://www.nexthost.biz/2871/With_FL/about.htm
Poster: John
Dated: Monday September 15 2003 - 18:07:30 BST
nexthostbiz wrote:
Same test link setup, just reuploaded the changed milonic_src.js file.
I "assume" (hate doing that) you mean you downloaded RC10 and uploaded all 3 new files, correct?
Poster: nexthostbiz
Dated: Monday September 15 2003 - 19:35:11 BST
i am using the latest zip file that Andy sent me Sunday. I couldn't find the build #, but i am assuming it's the latest?
Poster: John
Dated: Monday September 15 2003 - 19:59:10 BST
nexthostbiz wrote:
i am using the latest zip file that Andy sent me Sunday. I couldn't find the build #, but i am assuming it's the latest?
Second line of the comments in your file...
Code:
Version 5.0 Release Candidate 9.0 Built: Thursday September 11 2003 - 15:08
Go get RC10.
Poster: nexthostbiz
Dated: Monday September 15 2003 - 21:07:59 BST
Thank JGillet!
I sent andy an email and got the newest update

The installation instructions might need to be updated.
The only thing that needs to be done to test the script is to upload the menu scripts folder, and add 2 JavaScript tags to your HTML page.
It looks like you changed the javascript tags to eliminate the other steps

<SCRIPT language=JavaScript src="/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/menu_data.php" type=text/javascript></SCRIPT>
And maybe add in the installation instructions that in these tags, we need to change the src?
I am still not able to get the test menu to load .. Should I be placing the path from the public_html/ folder?:
<SCRIPT language=JavaScript src="/2871/With_FL/menu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/2871/With_FL/menu/menu_data.php" type=text/javascript></SCRIPT>
Poster: Andy
Dated: Monday September 15 2003 - 21:50:14 BST
The menu_data.php file should be menu_data.js.
It's been changed now.
Cheers
Andy
Poster: nexthostbiz
Dated: Monday September 15 2003 - 21:56:16 BST
ok.. i made the change from .php to .js
and i tried changing the path of the the 3 scripts in the html to point to
/2871/With_FL/menu/milonic_src.js
/menu/milonic_src.js
/milonic_src.js
for each of the files.
None of these changes are showing the menu. Any other ideas?
Poster: Andy
Dated: Monday September 15 2003 - 22:01:55 BST
Where are the files located in relation to your website?
I can't find them in http://www.nexthost.biz/2871/With_FL/
Cheers
Andy
Poster: nexthostbiz
Dated: Monday September 15 2003 - 22:04:08 BST
Here is the test page I uploaded just to see if the script works:
http://www.nexthost.biz/2871/With_FL/about.htm
the menu scripts are at:
http://www.nexthost.biz/2871/With_FL/menu/
Poster: Andy
Dated: Monday September 15 2003 - 22:11:03 BST
Try changing the script references to:
Code:
<SCRIPT language=JavaScript src="/2871/With_FL/menu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/2871/With_FL/menu/menu_data.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/2871/With_FL/menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="/2871/With_FL/menu/menu_data.js" type=text/javascript></SCRIPT>
Cheers
Andy
Poster: nexthostbiz
Dated: Monday September 15 2003 - 22:32:23 BST
yep.. tried all 3 combinations before:
/2871/With_FL/menu/milonic_src.js
/menu/milonic_src.js
/milonic_src.js
for all the files, and just copied and pasted your edit again, with the following output:
http://www.nexthost.biz/2871/With_FL/about.htm
Poster: Andy
Dated: Monday September 15 2003 - 22:35:33 BST
Looks OK to me, just the images need doing now.
You not seeing this?
Cheers
Andy
Poster: nexthostbiz
Dated: Monday September 15 2003 - 22:41:25 BST
sweet... i refreshed and it worked

Now time for some customization!! woo hoo!!
I guess the stable recommendation is to setup the menu as a quick menu that hovers and follows the user down the left side of the screen

Or are there any browser stability problems with the hover functionality as well?
I just started another thread on this: http://www.milonic.com/forum/viewtopic.php?t=2535
but no polls yet

Thanks .. you all ROCK!!
Poster: Hergio
Dated: Tuesday September 16 2003 - 4:19:52 BST
He is right, the docs say only 2 scripts need to be included, but in fact there are three...milonic_src, (mmenudom/mmenuns4), & menu_data. Can't believe we missed that...guess I was looking too hard for scriptpath.
Poster: John
Dated: Tuesday September 16 2003 - 15:09:32 BST
Hergio wrote:
He is right, the docs say only 2 scripts need to be included, but in fact there are three...milonic_src, (mmenudom/mmenuns4), & menu_data. Can't believe we missed that...guess I was looking too hard for scriptpath.
OK, so where are we here - 1 fer you, 1 fer me, and zip for the boss...

Poster: Andy
Dated: Tuesday September 16 2003 - 15:13:32 BST
Yes but I fixed it this morning while you lot were still asleep

Er. . . We are talking about install.txt aren't we

-- Andy
Poster: John
Dated: Tuesday September 16 2003 - 15:23:37 BST
Andy wrote:
Yes but I fixed it this morning while you lot were still asleep

Umm, you're 'assuming' I'm awake now...
OK - so 1 all the way 'round

Andy wrote:
Er. . . We are talking about install.txt aren't we 

Yup... the old Step 4 again...
Poster: John
Dated: Tuesday September 16 2003 - 20:23:50 BST
nexthostbiz wrote:
you guys crack me up!!
The only way to work is have fun while you're doing it...

Poster: Hergio
Dated: Tuesday September 16 2003 - 20:39:29 BST
I think I also mentioned that the docs neglected to mention that menu items are required for every menu...at least one in each menu. I took all the aIs out of my menu and it crapped. hehe I think I got two now!

Poster: John
Dated: Tuesday September 16 2003 - 20:51:34 BST
Hergio wrote:
I think I also mentioned that the docs neglected to mention that menu items are required for every menu...at least one in each menu. I took all the aIs out of my menu and it crapped.
Somehow that would seem logical to me...
Hergio wrote:
hehe I think I got two now! 

Oh, brother - here we go...
Poster: Hergio
Dated: Tuesday September 16 2003 - 21:05:43 BST
Well hey, people can do it and you know we'd get a post up here sayin somebody's menu ain't workin and we find a menu with no items in it. And they say, the docs never said we couldnt!

Ok, I won't count it. Its gotta be rock solid for it to count, black and white!