• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to read a getter from javascript

 
Ranch Hand
Posts: 31
  • 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 . . .
 
Ranch Hand
Posts: 1873
  • 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
 
Have you no shame? Have you no decency? Have you no tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic