Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > JavaScript Menu component don't work

JavaScript Menu component don't work
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2001
Status: Offline
Reply With Quote
Nov 19, 2001, 01:49 PM
 
Hi,

It seems that JavaScipts Menu componets don't work. I've tried NetScape and IE. It's DHTML. Maybe this is the reason that is does not work. Does anybody know the reason?
See the following URL's with examples: http://developer.netscape.com/viewso...mith_menu.html http://developer.netscape.com/viewso...ith_menu2.html

Thanks,
Wim
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 19, 2001, 02:33 PM
 
Unless I'm mistaken, noth NS6 and IE5/Mac both use only the W3C DOM, rather than the proprietary API's given in the article you reference (which the 4.x browsers use).

There's a very nice set of DOM menus at http://www.brainjar.com that should work, but they don't work with 4.x browsers.

[EDIT: ...and by the way, this should be in the Web Developer forum. Click through to find your thread.

[ 11-19-2001: Message edited by: Millennium ]
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Nov 19, 2001, 05:34 PM
 
Originally posted by wtimmer:
<STRONG>Hi,

It seems that JavaScipts Menu componets don't work. I've tried NetScape and IE. It's DHTML. Maybe this is the reason that is does not work. [/URL]

</STRONG>
Isn't DHTML just javascript?????
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Nov 19, 2001, 06:26 PM
 
DHTML, which supposedly stands for "Dynamic HTML", is more a marketing term than anything else. You need four things to make it work:
  • A document. You need content to present. HTML is commonly used here, though XML can be used too.
  • A property set. Something to modify. Cascading Style Sheets are the norm in this arena.
  • A scripting language. Something to modify with. JavaScript is the generally-accepted standard.
  • An object model. Something to tie it all together. This is where the incompatibilities lie, for the most part. Netscape 4 has its own object model. So does IE. But the W3C has proposed a standard model, to replace the other two. It is this standard model which the latest browsers, including all of the browsers for OSX, support. In fact, none of the browsers on OSX support any of the other models (except maybe OmniWeb, which for some reason has chosen to emulate Netscape4).
This is where the trouble is. The articles in the original post don't use the standard DOM; they use the Netscape4 and IE4 ones only. But neither of these works in any OSX browser. You need to use the standard model for that.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2