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:22

menu works locally, but not online


Poster: lemon
Dated: Tuesday June 29 2004 - 4:10:34 BST

Okay,

I've just uploaded my menu, which worked on my local drive, but doesn't even show up in the online version.

http://www.olneyfriends.org/schooltest/

Any ideas?

PS: using a mac


Poster: Maz
Dated: Tuesday June 29 2004 - 4:54:23 BST

Try removing the dots before path and only use a slash eg:

../calendar/calendar.htm

to

/calendar/calendar.htm

that's all I can find at the moment, it sounds like a path problem.

maz


Poster: lemon
Dated: Tuesday June 29 2004 - 5:00:57 BST

hmmm... i just tried that, and it still doesn't seem to be working...


Poster: Maz
Dated: Tuesday June 29 2004 - 5:08:05 BST

The paths are not right from the root. after .org/

/schooltest/menu_data.js

go through all your paths so they are all from the root like this, the ones on your html page are not connecting.

maz


Poster: lemon
Dated: Tuesday June 29 2004 - 7:53:42 BST

aha... thanks for pointing that out.

however.... i've changed all the paths, and there is still something not quite working.... any ideas?

thanks again for helping out so much!


Poster: fredlongworthhighschool
Dated: Tuesday June 29 2004 - 13:51:20 BST

Can you explain the heirarchy of your site? There seems to be too much guesswork in adding and removing slashes and dots.

still not working...


Poster: lemon
Dated: Tuesday June 29 2004 - 15:56:36 BST

relevent files in root:

arrow.gif
subon_arrow.gif
menu_data.js
mmenuns4.js
milonic_src.js
mmenudom.js
button.....jpg(s)

relevent files in /schooltest/:
index.htm

i've tried other combo's too, with all files in the same directory, some in a sub directory, and so on.... the paths all work on my computer, but when i mirror the paths online, i get nothing.

is there something very basic that i'm overlooking here?


Poster: John
Dated: Tuesday June 29 2004 - 16:01:12 BST

I have your site working on my server at http://www.west.asu.edu/sa/testsite/. I am using your _data file (no changes except full URLs for the graphics) and my 5.3 code called locally. I was unable to get the system to work using the menu code from your site. I would suggest downloading a fresh set of code. Make sure you upload it to your server as text, not 'automatic' or any other setting in your ftp program.

Also, a little confused by the doctype...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
????"http://www.w3.org/TR/html4/strict.dtd">

I changed it to...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/strict.dtd">

...removing the ???? stuff.


Poster: lemon
Dated: Tuesday June 29 2004 - 16:47:30 BST

john,

thanks for checking the menu on your own server!

it's good to know the menu_data.js file works somewhere.

having said that, could you please remove the files from your server? (thanks!) ;)

in reference to the 5.3 menu code idea, i just put up a freshly downloaded code, and it's still not loading the menu.

could this be a liscencing problem? i notice that your menu code is liscenced as "http://www...." whereas mine has no "http://"... it starts with the "www"

could that be causing problems? i tried changing the code in the milonic_src file, to include the "http://" and that did nothing.

do i need to change my registration information with milonic?


Poster: John
Dated: Tuesday June 29 2004 - 17:03:37 BST

You're welcome.

lemon wrote:
having said that, could you please remove the files from your server? (thanks!) ;)

Done.
lemon wrote:
could this be a liscencing problem? i notice that your menu code is liscenced as "http://www...." whereas mine has no "http://"... it starts with the "www"

could that be causing problems? i tried changing the code in the milonic_src file, to include the "http://" and that did nothing.

I don't think that's the problem. All that should do is add the forced Milonic link at the top of the menu system.

Don't mess with anything in the _src file - it's a very sensitive piece of code (not to mention "re-coding" that file could cost you your support here)!

Not sure what's up right now. Works here, doesn't work there kinda points to there. Another possibility is improper pathing.


Poster: lemon
Dated: Tuesday June 29 2004 - 18:10:02 BST

check. definitely won't be messing with the src file. the newest one is on my server now, pure and unaltered.

i really have no clue what's going on. frankly, i'm baffled. i've repeatedly checked out all the paths, and they look okay to me. how could it work when mirrored on your server, but not work on mine?

is it possible that there's some kind of configuration that i would need to do to my server? that seems unlikely to me. i'm not the techiest of tech's, but i feel like one server should be just as good as another in terms of javascript. if it were php or cgi or something server side, then i could understand a difference. but.... eh? i'm so confused.


Poster: Maz
Dated: Tuesday June 29 2004 - 19:59:08 BST

Your paths are correct, but this is not:

onsubimage='/subon_arrow.gif'

should be:

onsubimage="/subon_arrow.gif";


Poster: Ruth
Dated: Tuesday June 29 2004 - 20:18:26 BST

Have you tried, just as a test, putting the full path in for each of the files to see if it works. So, each would be
Code:
http://www.olneyfriends.org/whatever file.

Ruth


Poster: John
Dated: Tuesday June 29 2004 - 20:51:48 BST

Looking at the calls again I don't see a problem with what you have for the paths, and I can get to the files using that structure. No idea why it didn't work when I called your code files from here.

However, there is one other thing I did (forgot!). You're using strict in the doctype, and I'm not really sure just how strict that is. In the first and last menu call statements only (not the _d.write lines), I added "" around both language= and type= parameters, and around just language= in the second line...
Code:
<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.js" type="text/javascript"></script>

FWIW...


Poster: kevin3442
Dated: Tuesday June 29 2004 - 21:32:02 BST

Hi Lemon,

No need to change the licensing info in milonic_src.js; it appears in your download as it appears in Milonic's licensing database, so it's best not to mess with it. As for the problem...

Aside from the fact that you're using a mac ;) ... Your menu_data.js file looks fine (you are missing the semicolon at the end of the aI() string for the "classes" item in your main menu, but that's not a huge deal). I think the problem is that the mmenudom.js file on your server is messed up. The copy you're running locally is probably still OK, or else your test wouldn't work locally. I'm guessing that there was a hiccup during the upload of that file. If I were you, I'd re-upload mmenudom.js to the site's root and see if your menu appears. If not, re-upload all three of the menu's source .js files and try it again.

Hope that helps,

Kevin


Poster: lemon
Dated: Tuesday June 29 2004 - 22:25:24 BST

thanks!

it worked!

for the record, i was using Bullet Proof ftp, and i tried re-sending the mmenudom file but to no avail. THEN, i switched to Fetch FTP, resent the file, and just like that, everything was better.

again, thanks so much for all the helpful comments along the way! this is by far one of the best support forums i've ever had an experience with.


Poster: John
Dated: Tuesday June 29 2004 - 23:20:54 BST

lemon wrote:
thanks!

it worked!

Great! Glad to hear it.
lemon wrote:
for the record, i was using Bullet Proof ftp, and i tried re-sending the mmenudom file but to no avail. THEN, i switched to Fetch FTP, resent the file, and just like that, everything was better.

Fetch has always been on top (although I did find 'CaptainFTP' last month - very good).
lemon wrote:
again, thanks so much for all the helpful comments along the way! this is by far one of the best support forums i've ever had an experience with.

You're welcome.

Thanks for the kind words. You have no idea how much they are appreciated. :D