aspose file tools*
The moose likes Applets and the fly likes html to applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "html to applet" Watch "html to applet" New topic
Author

html to applet

ravi vardhin
Ranch Hand

Joined: Jun 04, 2001
Posts: 37
hi all,
when iam calling a function in Applet from javascript iam getting an OLE error.can any one explain why this error is comming.
my javascript function...
<script language =javascript>
function repeat()
{
document.replay.getMessage();
}
</script>

here getMessage() is the function in my applet code.
when iam calling repeat() function on click of an image from html
iam getting OLE error.
please help me in solving this problem.
thanks and regards
ravi
Julia Reynolds
Ranch Hand

Joined: May 31, 2001
Posts: 123
Maybe double check and make sure the getMessage method is a public method.
Julia
ravi vardhin
Ranch Hand

Joined: Jun 04, 2001
Posts: 37
Originally posted by Julia Reynolds:
Maybe double check and make sure the getMessage method is a public method.
Julia

thanks julia.
My getMessage is a public method.
is their any other possibility.
reply
thanks
ravi
Julia Reynolds
Ranch Hand

Joined: May 31, 2001
Posts: 123
Are you sure the name of the applet is "replay"?
Tobe Stephens
Greenhorn

Joined: Jun 17, 2001
Posts: 6
Ravi
Also check that your javascript code is in the <head> of your html page.
I've noticed that when I use the document object in javascript that is within the <body> I get an error. Similarly, you must specify document if your code is in the <head>.
Tobe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html to applet