Questions tagged [liveconnect]

LiveConnect allows ECMAscript code running Mozilla's Rhino interpreter to access Java code in a transparent way.

This tag should be used in questions specific to Mozilla Rhino ECMAscript interpreter that relates to ECMAscript or JavaScript AND Java. It's a way to embed Java code in your JavaScript scripts.

You can check Embedding Rhino or Scripting Java for tutorials.

Note that the Rhino interpreter can sandbox the interpreted code to disallow this functionality. You won't see this active in a browser since it poses security risks. That said, it's a very powerful technology that enables a lot of possibility for projects using Rhino.

54 questions
0
votes
2 answers

How to get an absolute file path with a Java applet

I'm attempting to get an absolute file path in a web browser. I've learned that it is not possible using plain HTML and javascript, and that a java applet is the best route. Unfortunately, my knowledge of java is rudimentary at best. So far I have…
M Saavedra
  • 71
  • 1
  • 6
0
votes
1 answer

getting error when accessing a java variable (via java method) using javascript

For some reason I can't get the variable to be read using JavaScript. I am using an applet and the errors I get in my Chrome console is: Uncaught Error: java.security.AccessControlException: access denied ("java.lang.RuntimePermission"…
Rohan Bhangui
  • 353
  • 2
  • 10
0
votes
2 answers

Live Connect as Azure ACS Identity Provider

I am using Azure ACS as a federation gateway for my application and I allow users to authenticate with Google, Yahoo & Windows Live ID. I need the user's email address. Google and Yahoo provide the email but Windows Live ID does not. I can get the…
user655653
  • 153
  • 5
0
votes
0 answers

Live Connect API Windows 8 app file source URL changing

I have an app that syncs data through a JSON file hosted on the users SkyDrive. I'm storing the URL to the file after it is created in the users Roam Settings, but it seems to change at some point and I can figure out what's going on. Do source…
user699242
  • 1,833
  • 4
  • 21
  • 31
0
votes
1 answer

How to get profile pictures of each contact

I'm using the REST API from Windows Live Connect. I can get all contacts from an user but I don't understand how to get their profile photo. Here is the manual I'm using. http://msdn.microsoft.com/en-us/library/live/hh243648.aspx I'm using the…
sahid
  • 2,570
  • 19
  • 25
0
votes
3 answers

Handle see-other-host in smack

I'm trying to use smack in order to connect to Microsoft's Xmpp Msn api. Last april they made a change in their implementation which forces clients to implement the "see-other-host" xmpp specification. When I try to connect to…
alscu
  • 928
  • 9
  • 22
0
votes
1 answer

Applet calling JS using LiveConnect - does not work outside init()

I have an applet running within GWT, I am able to access JS functions from the init() of the applet. But i am unable to use JSObject.call() or JSObject.eval outside the init().
0
votes
1 answer

LiveConnect unable to initialise certain classes in firefox extension java.lang.reflect.InvocationTargetException

I followed this guide https://developer.mozilla.org/en/Java_in_Firefox_Extensions to enable me to access java classes in a firefox plugin (I am actually adding them to a user-extension for selenium ide). Everything works great with the guide above,…
James
  • 589
  • 1
  • 6
  • 15
-1
votes
2 answers

javascript and live connect

i wrote a simple html file that prints 10 random numbers using javascript. javascript object in turn uses java.util.Random class (live connect) to output the result! but i am not getting exact output when using with functions and events like onLoad…
user712359
1 2 3
4