• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

html to applet

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure the name of the applet is "replay"?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic