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
12
votes
10 answers

access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)

I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html: The Java Applet has a method that looks similar to the code…
PropellerHead
  • 929
  • 1
  • 12
  • 27
11
votes
1 answer

How do I get a user's contacts email data from Windows Live?

I know there are similar questions, but bear with me... I've hit similar problems to other questioners regarding only getting hashed versions of contact email addresses, and understand why. The thing is, I've noticed that google+ appear to be able…
izb
  • 50,101
  • 39
  • 117
  • 168
10
votes
5 answers

LiveConnect calls are blocked on 7u45 since Java 7u51 became available

I have a page with a Java applet that has the following JavaScript code which makes a LiveConnect call when the window is closing to perform some clean up tasks: window.onbeforeunload = function(e) { var result =…
Chris R
  • 2,464
  • 3
  • 25
  • 31
7
votes
1 answer

Metro App - How to detect if logged in with Live ID or Local Account

I am building a Metro C# SkyDrive API on top of the Live Connect SDK (http://msdn.microsoft.com/en-us/live/default) - in Windows 8 the user has the choice to SignIn to the Windows 8 machine with either a LOCAL account, or a LIVE account. When…
Steve Stokes
  • 1,200
  • 18
  • 36
6
votes
3 answers

Problem with Java Applet <--> Javascript communication

I'm having trouble getting a Java Applet to communicate with the Javascript code on the page the applet is hosted on. It works sometimes, but othertimes it throws an obscure exception, that googling for has not turned up any useful information,…
davr
  • 18,877
  • 17
  • 76
  • 99
4
votes
1 answer

Size of the parameter in applet call is too big

I have problem in passing some data from JavaScript to an applet. I think size of data is too big (18M characters in string) to pass it through LiveConnect. I put code samples below: JavaScript: var bigData = generateSomeBigData(18000000); // string…
Tomasz Dzięcielewski
  • 3,829
  • 4
  • 33
  • 47
3
votes
1 answer

How do I actually run Rhino?

I've read through the docs here: Mozilla's 'Scripting Java' These examples don't answer my question either: Rhino Liveconnect example How do my javascript files know where to find "java.lang" for example? Of course it works inside the Rhino shell,…
Blub
  • 13,014
  • 18
  • 75
  • 102
3
votes
1 answer

What do I need to do to get LiveConnect working again?

Years ago I wrote a Java Web Start application in NetBeans that performs a simple file upload task. For years I had it as a self-signed applet but finally caved and bought a signing certificate. I've got it all signed now, but I'm running into a new…
soapergem
  • 9,263
  • 18
  • 96
  • 152
3
votes
6 answers

Is it possible to create arbitrary Java objects from JavaScript in ie?

LiveConnect is a Mozilla technology that bridges Java and JavaScript. Amazingly, they've started maintaining it again for recent versions of Firefox. In Firefox I can write e.g. var d = new java.util.Date(); or use the Packages. namespace if it's…
joeforker
  • 40,459
  • 37
  • 151
  • 246
2
votes
1 answer

Creating folders issue with SkyDrive

I have read about creating folder in SkyDrive with Live SDK here (the don't mention about 'boundary' parameter there), here is my code: WebRequest request =…
nvcnvn
  • 4,991
  • 8
  • 49
  • 77
2
votes
3 answers

Javascript to Java communication using LiveConnect not working

I've been working on a project that requires communication both directions between Java and JavaScript. I have successfully managed to get it working under all browsers in OS X, but I'm now faced with the challenge of getting it to run on Windows…
Ben Novakovic
  • 581
  • 7
  • 17
2
votes
1 answer

Java applet - LiveConnect security warning popup

We're experiencing the LiveConnect security warning in our application even though the applet is signed, and the Caller-Allowable-Codebase attribute is set: The second problem is that the Application and Publisher fields are set to UNKNOWN in IE,…
jsaddwater
  • 1,781
  • 2
  • 18
  • 28
2
votes
1 answer

Why does the Live Connect SignInButton fail with an invalid redirect_uri?

I'm experimenting with Windows Phone apps and live connect. I have this control on my main page: xmlns:live="clr-namespace:Microsoft.Live.Controls;assembly=Microsoft.Live.Controls" ...
Matthew
  • 28,056
  • 26
  • 104
  • 170
2
votes
1 answer

Microsoft Live Connect, REST Access Issue

I'm trying to access Microsoft LiveConnect from a Java webapp. And I have a problem of getting tokens. The problem is following: I followed the Authorization code grant flow as indicated in…
2
votes
1 answer

use java in FireFox 16,17,18 +

I am using Java in my FireFox extensions and I am unable since Mozilla stopped supporting Java in FireFox 16,17,18 . So I found that using LiveConnect it was possible before but now it's not. Is there a way around that? I want to use Java in my FF…
edinvnode
  • 3,497
  • 7
  • 30
  • 53
1
2 3 4