Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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.
Squanch that. And squanch this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic