Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html to applet

 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe double check and make sure the getMessage method is a public method.
Julia
 
ravi vardhin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure the name of the applet is "replay"?
 
Tobe Stephens
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic