Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Safari browser applet java script issue

843807Sep 24 2007 — edited Oct 16 2007
Hi,

I developed a program in applet and i use to call that function through javascript. I tested with other browser like IE, Opera, Firefox, Netscape and Safari. My code is working every browser accept safari. Can any body guide me what is the problem.
<html>
<head>
<script language="javascript">
function appletCall()
{
try
{
 var returnVal=document.appletName.functionName();
 alert(returnVal);
}catch(ex)
{
alert(ex);
}
}
</head>
<body>
<applet name="appletName" id="appletName" CODE="appletExample.class" WIDTH=100 HEIGHT=100></applet>
<input type="button" name="b1" value="ok" onclick="appletCall()">
</body>
</html>
Exception in safari browser
TypeError: Value undefined (result of expression document.appletName.functionName()) not object.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 13 2007
Added on Sep 24 2007
3 comments
126 views