menu works locally, but not online

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

menu works locally, but not online

Post by lemon »

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
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

Post by lemon »

hmmm... i just tried that, and it still doesn't seem to be working...
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

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
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

Post by lemon »

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!
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Can you explain the heirarchy of your site? There seems to be too much guesswork in adding and removing slashes and dots.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

still not working...

Post by lemon »

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

Post by John »

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

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

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
...removing the ???? stuff.
John
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

Post by lemon »

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

Post by John »

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.
John
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

Post by lemon »

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.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Your paths are correct, but this is not:

onsubimage='/subon_arrow.gif'

should be:

onsubimage="/subon_arrow.gif";
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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

http://www.olneyfriends.org/whatever file. 
Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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

<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...
John
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
lemon
Beginner
Beginner
Posts: 7
Joined: Tue Jun 29, 2004 4:04 am

Post by lemon »

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

Post by John »

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
John
Post Reply