• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 43028
76
  • 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: 43028
76
  • 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)?
 
My pie came with a little toothpic holding up this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic