Click to See Complete Forum and Search --> : JavaScript source category menu and Netscape


rbaxell
09-17-2003, 07:12 AM
i'm trying to use the JavaScript source category menu on a site I'm trying to build: www.international-brigades.org.uk/british_volunteers/

It works fine in IE but not Netscape. How can I fix this, or get different code that will work?

Thanks

Khalid Ali
09-17-2003, 08:22 AM
You will eed to make several changes in your existing code.

1. Replace all of the document.all
instances with document.getElementById("idName")

2. Then there is difference in the way IE and NS6+ browsers set the height,width, or top ,left positions.you wil need to read up on that as well..try
http://devedge.netscape.net

rbaxell
09-23-2003, 07:05 AM
Thanks for this though, unfotunately, I'm a little lost :o
Do I assume I have to defince the "idname"?
I should admit that I downloaded the code from Javafile.com so it would be safe to assume I'm relatively/completely clueless...
I had this naive ide that I would download the script, edit it slightly and everything would be fine. Some hope.

www.international-brigades.org.uk/british_volunteers

Thanks and apologies to all for being ignorant or irritating

Charles
09-23-2003, 07:11 AM
No matter what you do, your menu thingy will fail for a great number of users. In fact it will fail for more Microsoft users than all of the Netscape users. That's why you need to make sure that users can still navigate your site when the menu fails. Draw the root links with just HTML and make sure that each one points to a JavaScript free page that copntains the links of teh sub menus. And then don't worry about those few Netscape users. They will be just as happy as that greater number of JavaScript fee Microsoft users.

rbaxell
09-23-2003, 08:45 AM
Is there a way to automatically direct those IE + Java users to one version and the rest to the other? That would work wouldn't it? I vaguely remember seeing some mention of this somewhere...

Charles
09-23-2003, 08:58 AM
Then you end up with problems when people link to your site. And your site is a headache to maintain as well. No, it's always best to have just one site that works well for all browsers.

rbaxell
09-23-2003, 09:07 AM
I can see that makes sense. Okay, thanks for all this. Back to plain old HTML then. Such a shame when the site looked so nice... (On my computer anyway) :o)

Charles
09-23-2003, 09:16 AM
No, you misunderstand. You have one page that looks different in different browsers. Go ahead an keep your menu that only works in MSIE and with scripting un-disabled but make sure that there is a back up for the rest of us. This is known as "transitioning well".

rbaxell
09-26-2003, 08:41 AM
I think I've got in now, and the site should now work with all browsers (though the banner looks a little odd under Netscape 4.x)

Thanks for all your help and advice.

www.international-brigades.org.uk/british_volunteers