Forum Moderators: open

Message Too Old, No Replies

compatibility problem with netscape 4.7

functions not working in Netscape4.7

         

pankaj

12:21 pm on Dec 19, 2001 (gmt 0)



Hi all,
Here is something weired fuctionality found in Netscape 4.7 version. Well I have written a simple function in javascript,calling from an hyperlink "onClick" event .In IE it runs properly but in netscape it doesn't work.
Then I have just placed an "alert" in that function , After placing that alert it started to work.
But problem is I don't want that "alert" , so I commented that "alert" .Then I found some times it works properly & sometimes not. ie. an Inconsistence behaviour ....Well there is no problem with html tags,I have validated it.
Does it mean that Netscape4.7 required any space line ...Though I have given a comment in function , there is not a garranty that it will work each time ....
So does any body know how to solve this problem?

tedster

1:38 pm on Dec 19, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World, panjak.

Inconsistent results can be very frustrating! Yes, Netscape can be particular about spaces and line breaks in Javascript, or in HTML for that matter, but usually the browser always fails or always works, none of this some-of-the-time business.

If you want to send me the HTML and javascript code by Sticky Mail (see the top of the page), I'd be glad to take a look.

txbakers

2:42 pm on Dec 19, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello P: I am gradually, against my will, becoming fluent in the quirks of Netscape.

The OnClick method is only supported inside an <A HREF> tag, not on <IMG> tags.

I had to recode all my images to this effect. Also, if you use the "#" for the null HREF, be careful - it appends it to the QueryString and that causes problems as well.

Enjoy Netscape.