File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can remove listeners added to applet componenets from jsp?

 
H. J. Yoshi
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the method is public.
 
H. J. Yoshi
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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)?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic