Questions tagged [jsobject]

JSObject is a class of the Java UI library JavaFX. The class is used to manipulate Javascript objects from Java code.

JSObject is a class of the Java UI library JavaFX. The class is used to manipulate Javascript objects from Java code.

101 questions
1
vote
2 answers

How to convert a sql return to a custom Object?

In my code I make a SELECT on an SQL table where parameters are stored and I would like to output an OBJECT in this way: { inscription_max: 0, inscription_open: false, liste_attente_max: 0 } SQL Return : [ RowDataPacket { setting:…
Antonin_04
  • 37
  • 5
1
vote
1 answer

Java netscape.javascript.JSObject used for storing cookies

I have a Java application running on the web through a Webswing server. A Webswing server translates Java to HTML5 for secure web usage. I use netscape.javascript.JSObject to store and read cookies from the Java application. // write String cookie =…
Charles Mosndup
  • 600
  • 6
  • 19
1
vote
1 answer

Change value of dynamically added js object

I have an array with some predefined data var data = [ {amount:20, speed:100}, {amount:40, speed:50} ]; I am then adding data to the above array function addMore() { data = appendObjTo(data, {amount: 1500,speed:100}); } function…
JPJens
  • 1,185
  • 1
  • 17
  • 39
1
vote
5 answers

How to filter records based on the status value in JavaScript object?

I have JS object that looks like this: { "3": { "id": 3, "first": "Lisa", "last": "Morgan", "email": "lmorgan@gmail.com", "phone": "(508) 233-8908", "status": 0 }, "4": { "id": 4, "first": "Dave", "last":…
espresso_coffee
  • 5,980
  • 11
  • 83
  • 193
1
vote
1 answer

Object litteral memory performance in JS

Is object literal free memory when same object name recreate? what is effect on memory when I recreate same object name from object literal. e.g. var objLit = {}; for(var i=0; i<5; i++){ objLit['room'] = {}; objLit['room'].name = "A", …
Sandeep
  • 1,461
  • 13
  • 26
1
vote
0 answers

How to use JSObject from plugin.jar in a Java 8 Maven project and avoid conflicts with JavaFX

I'm working on an applet that uses JSObject & co. (from plugin.jar) to invoke JavaScript functions on the web page where it's loaded; the project is built using pure mvn: no IDEs, no Jenkins. My problem arises from the fact that Oracle provides two…
Andrea Funtò
  • 81
  • 1
  • 3
1
vote
1 answer

Questions about Nashorn - JSObject

I want to create a JSObject and fill it with properties (kind of like a HashMap), but without casting the result of an eval("({})"), because I would think that constantly evaluating such a thing would really have an impact on performance. Is there a…
Ben
  • 193
  • 1
  • 11
1
vote
0 answers

JSObject.call don't seem to work with Javascript namespaces

I have a Java Applet which uses some Javascript functions which are declared in an Javascript Object. The Javascript looks like this var foo ={ bar: function( var) { //do stuff }}; The Applet is…
Aloras
  • 23
  • 5
1
vote
1 answer

Loop through Awesomium JSObject

I'm making an C# Windows Form Application with an Awesomium webbrowser inside it. I'm trying to get some rows from an table and parse them to an array. The JSPart is running inside the browser fine. Here's the code that i use inside C#: JSObject…
Mathlight
  • 6,436
  • 17
  • 62
  • 107
1
vote
1 answer

Get A JSObject From A JSValue In Awesomium.NET

From this page I can see how to get a JSObject from a JSValue in C++. Is there a similar way to do so in .NET? The ToObject() method doesn't seem to exist.
JoeB
  • 2,743
  • 6
  • 38
  • 51
1
vote
1 answer

Get a JSObject or JSContext to run an applet

How to get a JSObject or JSContext to run an applet from Java? I'm trying to automate some procedure that consists in some link clicking in a web and then going through an applet, so what I do is to send some HTTPRequests through Java until I get a…
Ta Bla
  • 11
  • 2
1
vote
1 answer

Return control to an applet

I have an JApplet which during "init" starts JFrame. There are some operations in that JFrame and user closes the JFrame finally. Now I'd like to notify the browser via javascript that something is to be done. How to accomplish that? If it was the…
norbi771
  • 814
  • 2
  • 12
  • 29
1
vote
0 answers

Fail to access applet in Internet Explorer

I have an applet that should use WinAPI through JNA. The applet signed by its own key. I've deployed it on the page like this:
Kate
  • 11
  • 1
1
vote
3 answers

What is this "Unknown Name" JSException in Internet Exlorer 6?

I am using JSObject to invoke a Javascript function from my Applet. SSCCE of my Applet: package ch.vrag.web; import java.applet.Applet; import java.security.AllPermission; import java.security.CodeSource; import…
Neifen
  • 2,546
  • 3
  • 19
  • 31
1
vote
1 answer

JSObject.equals() says JSObject.getWindow() is not equal to JSObject.getWindow()

The documentation of JSObject.equals says: Determines if two JSObject objects refer to the same instance. In contrast the following expression evaluates to false: JSObject.getWindow(applet).equals(JSObject.getWindow(applet)) I have expected…
snorbi
  • 2,590
  • 26
  • 36