Click to See Complete Forum and Search --> : Java: Netscape v. Internet Explorer?


daybreak6876
02-28-2003, 02:53 PM
Hello all,

Just a quick question. I'm new to the world of Java so please pardon any misused terms.

I just incorporated a java script provided by a third party site (History Channel's "This Day In History" box to be specific) into the page I'm creating. When I previewed the page in IE6, the "This Day In History" java script loaded fine. When I previewed the page in Netscape7, in place of the "This Day In History" box was an error and a link to download Java2 RunTime SE. I downloaded Java and now the java script for the "This Day In History” box loads just fine in Netscape.

Does anyone know why I had to download Java2 RunTime SE in order to view the java script in Netscape but not for IE (you know, the answer to this question may also explain why my right-click disabling java script only works in IE.)? I’m wondering because I’m not sure whether or not I need to state on my home page that visitors need to download Java in order to view parts of my site (as I was planning on playing with a few other java scripts as well).

Thank you in advance for your time.

Most kindly,
Dawn




P.S. In case it helps to know, I’m using WindowsXP, FrontPage98, and the html for the java script I used is:

<table>
<tr valign="top" align="center">
<td height="161"><dl>
<dd align="center"><br>
<applet codebase="http://www.historychannel.com/showcases/" code="Hpod.class"
archive="Hpod.jar" name="Hpod" width="120" height="320" hspace="0" vspace="0"
align="middle">
<param name="podinfo" value="AID=1169438::PID=545042::SID=1"><a
href="http://www.qksrv.net/click-545042-1169438?URL=http%3A%2F%2Fwww.commission-junction.com%2Ftrack%2Ftrack.dll%3FAID%3D1169438%26PID%3D545042%26URL%3Dhttp%253A%252F%252Fnetwork%2 52Ehistorychannel%252Ecom%252F"
target="_blank"><img src="http://www.historychannel.com/showcases/x1.gif" border="0"
alt="JOIN"></a>
</applet>
</dd>
</dl>
</td>
</tr>
</table>

Phil Karras
02-28-2003, 03:04 PM
Sorry to say that no two browsers are alike, and I doubt they ever will be.

NetScape tends to follow the w3c standards for HTML and JavaScript far more closely than does IE.

As to your question about Java and JavaScript I have no real idea why it worked inIE and not inNS until you loaded a new Java.

Java and JavaScript are two different things, one can use JavaScript to get back data from a Java applet, and vice versa, but why it would work in IE and not NS I don't know.

Perhaps IE just ignored a problem and NS did not?

daybreak6876
03-02-2003, 09:00 PM
Phil,

Hey neighbor, enjoying our recent snows? Thank you so much for your help. Your response made me realize that I know even less about Java and JavaScript than I’d realized so I’ve since bought a helpful book. Again, thank you and take care.

Appreciatively,
Dawn