setup problem - not in root folder
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
setup problem - not in root folder
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!!!
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!!!
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.or from /2871/With_FL/menu/
Dave Hergert
Software Engineer
"Helping to make the menu better, one
at a time."
Software Engineer
"Helping to make the menu better, one

-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
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
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
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
Second line of the comments in your file...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?
Code: Select all
Version 5.0 Release Candidate 9.0 Built: Thursday September 11 2003 - 15:08
John
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
Thank JGillet!
I sent andy an email and got the newest update
here is the latest reply i sent to him, because i still can't get it to load:
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
but isn't their 3 tags?
<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>
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>
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
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
I can't find them in http://www.nexthost.biz/2871/With_FL/
Cheers
Andy
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
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/
http://www.nexthost.biz/2871/With_FL/about.htm
the menu scripts are at:
http://www.nexthost.biz/2871/With_FL/menu/
Try changing the script references to:
Cheers
Andy
Code: Select all
<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>
Cheers
Andy
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
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
/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
-
- Advanced
- Posts: 11
- Joined: Mon Sep 15, 2003 11:04 am
- Location: Princeton NJ | London England
- Contact:
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: viewtopic.php?t=2535
but no polls yet
Thanks .. you all ROCK!!

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: viewtopic.php?t=2535
but no polls yet

Thanks .. you all ROCK!!
OK, so where are we here - 1 fer you, 1 fer me, and zip for the boss...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.

John