Forum Moderators: open

Message Too Old, No Replies

Netscape vs. IE Problems

Designed in IE, doesn't work in Netscape

         

txbakers

4:36 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been working like a dog designing an ASP project working in IE, sporadically testing in NS. Come to find out that it is practically unusable in Netscape.

Is there a definitive resource available that will help me convert javascript code that works in IE to Netscape.

We're not talking fancy stuff here - rollovers, jumpto drop downs, table spacing.

I can offer links if you need a visual.

Thanks all.

Marshall

4:41 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



txbakers,

First, never work like a dog. I WISH I had the life my dogs do. Anyway, sticky-mail me the URL and I'll look at the page.

txbakers

4:44 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Marshall - I will send you the code right away, but it's more than one page....it's the entire site, close to 70 pages.

What baffles me is not so much the javascripts not working, but the non-implementation of the basic HTML code as well!

Thanks.

tedster

6:21 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



txbakers, Netscape usually handles basic HTML with no problem -- but it is much less forgiving of small errors than IE.

If you haven't already, I highly recommend running your pages through an HTML validator, like the one the W3C offers at [validator.w3.org...] It can save you many hours of frustration.

txbakers

6:23 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks tedster: I did discover just how unforgiving Netscape is. I will do the validator for the Basic HTML,

Do you know if onDblClick and onChange are supported in NS?

tedster

6:47 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, Netscape supports both. However, there are some technical differences between the two in how they handle Events. Netscape does "event capture" and Explorer does "event bubbling". Depending on your scripts, they might be tripping up on this.

Here's a refernce for event handling [hotwired.lycos.com]

txbakers

7:38 am on Dec 3, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for that link. That explains why I can't double click inside a select list in Netscape. That is a problem.

I'll have to write a window.eventcapture routine, then figure out where I am and route it to the javascript function.

It might be doable.

Or, I could do a single click and a "go" button if the user is in netscape. I prefer to have the double click.