Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing java class from javascript

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any guide me how to access the java class methods from javascript ?
thanks in advance
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kamesh aru:
can any guide me how to access the java class methods from javascript ?
thanks in advance


Have a look in the following link:

http://webreference.com/javascript/reference/core_ref/packages.html

Hope it helps to you
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


That link is about the Rhino JavaScript engine, which is written in Java, and not to my knowledge used in any browser. I assume you're talking about JavaScript in the context of a browser. In that case you're looking for a technology called LiveConnect, which enables two-way communication between Java applets and JavaScript within a web page. Unfortunately, LiveConnect is not supported by all browsers. Here is a test page you can use to check your browser.
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In any case, what exactly are you trying to accomplish?

-Yuriy
[ August 10, 2005: Message edited by: Yuriy Zilbergleyt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic