• 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

How to read a getter from javascript

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 . . .
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic