• 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

Can remove listeners added to applet componenets from jsp?

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am calling an applet from a JSP. At one point I want to disable mouse events from the applet (In order to disable selection of displayed images by clicking on them).

To do this I added a method to the applet and called the same from JSP -



Though at this statement throws the following error when application is executed -
'Object doesn't support this property or method'

I am calling other methods from the applet in a similar manner, and they work alright. I am using IE, and tried modifying it settings as well but it did not work either.
Is a JSP app not allowed to modify applet components..? Please help.
Thanks,
Himadri
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the removeMouseListenerFromApplet method public?

The applet tag should also include "MAYSCRIPT", but if other methods works fine then that is probably the case already.
 
H. J. Yoshi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the method is public.
 
H. J. Yoshi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am calling the applet through jsp using the object tag as follows -


Would using an apple tag instead make a difference..?

Thanks,
Himadri

[ May 23, 2007: Message edited by: Himadri Joshi ]
[ May 23, 2007: Message edited by: Himadri Joshi ]
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you said that you're calling other methods in this applet, and that those work fine, so I don't think using an applet tag would make a difference.

Maybe the method either in the applet or the JavaScript code is slightly misspelled (they need to match exactly)?
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing 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