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

Liveconnect support firefox 3.5

 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to access Java code from javascript...and after searching I came to know liveconnect can help.

But does firefox 3.5 support?? If not then what are the alternatives??

Please help

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Firefox supports LiveConnect. Note that LiveConnect is for calling into applets on that web page, not for executing arbitrary Java code. Search mozilla.org for examples and more information.
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Yes, Firefox supports LiveConnect. Note that LiveConnect is for calling into applets on that web page, not for executing arbitrary Java code. Search mozilla.org for examples and more information.


I have firefox 3.5.6 installed and after searching in the said site, I found there is no support for liveconnect? Correct me if m wrong .

S, is there any other way i can do that.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Firefox 3.5.6 sure can do LiveConnect; do you have a recent Java Plugin installed? Do applets work in general?

Here's an example page that does both Java-to-JavaScript and JavaScript-to-Java: http://test.javaranch.com/ulf/MyApplet.html
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets were not working on firefox 3.5.6. After fixing it, i was able to run your link .

Thanks ulf . Can you suggest me some tutorial on LiveConnect ( Javascript to java communication )??

Thanks
Rawat
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Plugin Dev Guide has some information: http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/contents.html; it also described the Java-to-JavaScript case, but for that I prefer the Common DOM API.
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ulf you are the man
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic