aspose file tools*
The moose likes Applets and the fly likes Can remove listeners added to applet componenets from jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Can remove listeners added to applet componenets from jsp?" Watch "Can remove listeners added to applet componenets from jsp?" New topic
Author

Can remove listeners added to applet componenets from jsp?

H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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.


Ping & DNS - my free Android networking tools app
H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
Yes, the method is public.
H. J. Yoshi
Greenhorn

Joined: Jul 21, 2006
Posts: 29
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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
 
subject: Can remove listeners added to applet componenets from jsp?