JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Weird. Menu shows in Mac OS X Safari, but not...

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
Bukk



Joined: 12 Feb 2003
Posts: 4

PostPosted: Wed Jun 11, 2003 12:20 am    Post subject: Weird. Menu shows in Mac OS X Safari, but not... Reply with quote

...anything else.

I have a page at: http://www.martus.org/index_2003.shtml

I built a menu and happened to be previewing the results in Safari. All was well. Looked good. Pretty simple menu, really. Then I went to IE, Mozilla, both Mac and Windows, and the menu doesn't show.

Aiiieeeeee!

I'm gonna guess I'm missing a comma somewhere, but is this common? What should I look for in my menu definition?

(Except it just showed up in Mac Mozilla 1.4b, but still nothing else!)
EDIT: Wrong, NOT showing up in Mozilla. I wasn't paying attention to what browser I was in!
Back to top
Sergey Nosenko
Developer


Joined: 19 Jan 2003
Posts: 75

PostPosted: Wed Jun 11, 2003 7:01 am    Post subject: Reply with quote

Look at the line 46 of your menu_items.js file. You use TOP_BOTTOM style but variable TOP_BOTTOM is not defined anywhere.

It looks like Safari ignore this error but IE, Mozilla and Opera can't continue with it.

In Windows good paractics is check menu_items.js useing WSH.
Just type "cscript menui_tems.js" in command prompt and you will see error if it is in code.
Back to top
Bukk



Joined: 12 Feb 2003
Posts: 4

PostPosted: Wed Jun 11, 2003 12:50 pm    Post subject: Reply with quote

Here I was, probably happily typing along and just typed TOP_BOTTOM even though I knew it was TOP_MIDDLE that I was using.

I can't tell you how many times I looked at the code without catching it. And, as you saw, it wasn't a complicated menu by any means. I just couldn't see the problem.

Thanks for catching that, and thanks for the tip about WSH -- I will remember that!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1