setup problem - not in root folder

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

setup problem - not in root folder

Post by nexthostbiz »

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!!!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The scriptpath has now been removed from the menu.

Should be easier to setup now.

Cheers
Andy
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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?
John
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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: Select all

Version 5.0 Release Candidate 9.0 Built: Thursday September 11 2003 - 15:08
Go get RC10.
John
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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>
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The menu_data.php file should be menu_data.js.

It's been changed now.

Cheers
Andy
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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/
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Try changing the script references to:

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
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Looks OK to me, just the images need doing now.

You not seeing this?

Cheers
Andy
nexthostbiz
Advanced
Advanced
Posts: 11
Joined: Mon Sep 15, 2003 11:04 am
Location: Princeton NJ | London England
Contact:

Post by nexthostbiz »

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!!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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... :roll:
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Yes but I fixed it this morning while you lot were still asleep :P

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

-- Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Andy wrote:Yes but I fixed it this morning while you lot were still asleep :P
Umm, you're 'assuming' I'm awake now...

OK - so 1 all the way 'round :D
Andy wrote:Er. . . We are talking about install.txt aren't we :oops:
Yup... the old Step 4 again...
John
Post Reply