• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

html to applet

 
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
 
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"?
 
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
 
Water proof donuts! Eat them while reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic