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

How to read a getter from javascript

 
Mike Gray
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a third party applet that has 'getter' fileds that return booleans, stings or integers. How can I read these using Javascript ?
For example, there is a getter method in the applet that looks like this:
public boolean getIsFitToWidth()
{
return _imagePanel.getIsFitToWidth();
}
Which returns true or false.
Any info would be appreciated . . .
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Mike
I know that in IE, you can call applet's public methods using ID field on OBJECT tag and that would work for you I guess but in Netscape based browsers I guess that is a problem as EMBED tag doesn't work the way OBJECT tag works and the browser doesn't identify the component as an applet hence doesn't allow calling the same public method.
This is for the case when you are using Java Plugin. I'm not sure if things are behaving similar for simple APPLET tag as well.
Regards
Maulin
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic