Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript problems with Netscape 4.7

Status
Not open for further replies.

BillAtCDA

Technical User
Jan 16, 2003
7
US
I've got a website where I use JavaScript. A friend tried looking at my page using NetScape 4.7, and it just ignored the scripts. Very strange - considering JavaScript is Netscape's baby. IE 6.0 and NetScape 6.0 run it properly. I didn't believe it until I saw it myself. Has any one else run into that? (Yeah, I know - just update to Netscape 6.0 - but she's on a dial-up.)
 
Oops! Wrong forum - sorry about that. I'll post this in the "Javascript" forum.
 
She can still upgrade.

Netscape 4.7X just doesn't support a lot of things. It is pretty simple really. Not strange at all.
 
Unfortunately, I have to support Netscape 4.72 but can run most of my JavaScript on it. The only issues I have with it are setting focus to a a radio button and dynamically rebuilding a combo box from an array.

How are you calling your JS? Inline? External?
Maybe you can include some code here so we can see.

Mickey
 
I'm forced into supporting older browsers, too. Here's a sample of code that won't run on 4.7. (It's an attempt at spoofing email harvesters):

<script language=&quot;JavaScript&quot;>
<!-- // Hide
var showtext = &quot;Email our Pastor&quot;;
var mailpart1 = &quot;stjames&quot;;
var mailpart2 = &quot;mail.klondyke.net&quot;;
document.write(&quot;<a href=&quot; + &quot;mail&quot; + &quot;to:&quot; + mailpart1 +
&quot;@&quot; + mailpart2 + &quot;>&quot; + showtext + &quot;</a>&quot;)
//-->
</script>

This is pasted right out of my index.html page. Any suggestions? -----
&quot;Even if you win the rat race, you're still a rat.&quot; - Lily Tomlin
-----
billatcda@yahoo.com
BillAtCDA
 
Your friend's browser isn't set to allow javascript! I took your script and pasted it into my own web page, then tested it with Netscape 4.79. Works like it's supposed to!!!

I'm sure that you already know this, but it's worth saying again, NN4.XX is used by less than 1% of all web browsers. So, by supporting NN4.XX, you're actually hurting your web site by not taking advantage of the things that the new Javascript version(s) can do for your pages.
There's always a better way...
 
Thanks, tviman. I'm going to upgrade her, so I don't have to worry about it any more - and, yes, you're right, there's ALWAYS a better way! -----
&quot;Even if you win the rat race, you're still a rat.&quot; - Lily Tomlin
-----
billatcda@yahoo.com
BillAtCDA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top