Questions tagged [javascript-engine]

For questions related to JavaScript engine development. If you are simply referring to issues with JavaScript code, use the [javascript] tag instead.

154 questions
0
votes
0 answers

Issue using javax.script in Android programming

I am new to Android programming, I'm trying to make a calculator for Android and I want to use javax.script, I have added the jar file library, I can import these: import javax.script.ScriptEngineManager; import javax.script.ScriptEngine; import…
0
votes
1 answer

Have javascript declare (by default) undeclared variables to the current local scope (based on first use) instead of global scope?

Can this be done either via writing some code to intercept the global scope default declaration or via a setting within the javascript engine itself which each program or function has access to? What I mean is if I could, at the top of the program…
ciso
  • 2,606
  • 4
  • 28
  • 54
0
votes
1 answer

Undefined objects in JavaScript engine in Java

Executing the following code in Java7 ScriptEngine scriptEngine = new ScriptEngineManager().getEngineByName("js"); Bindings b = scriptEngine.createBindings(); b.put("x", true); scriptEngine.eval("x&y", b); I get the error…
Adrian Ber
  • 17,162
  • 9
  • 57
  • 99
0
votes
3 answers

Calling JavaScript function in Java

I'm trying to send an email using a javascript code in a Java project. Database connection works fine, I already tested it. I got the error: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: missing ) after…
Nicolas
  • 45
  • 7
0
votes
2 answers

v8 javascript API documentation to work in c

Could any one point me to the [v8 javascript API documentation to work in c] so that I could find proper functions, their uses and return types for doing things, the various API's available on internet are old and the newer v8 is particularly not…
prashant
  • 196
  • 2
  • 13
0
votes
1 answer

IBM Worklight - Is there an embedded rendering engine? Can we change it?

I'm working on a software that includes 3D graphics. Those are massive enough, so I decided to use OpenGL to keep a quite fluent animation. I selected THREE.js graphic library (WebGL). Reading the html through a Web browser works very well : WebGL…
Vincent
  • 3
  • 1
0
votes
2 answers

Java ScriptEngine - Create dynamic variables in java class

I've using the java ScriptEngine to execute a script that could alter a shared Java class. I'm wondering, if it's possible to support dynamically created variables in the java class? // create a script engine manager ScriptEngineManager factory =…
webber
  • 1,523
  • 4
  • 21
  • 46
0
votes
1 answer

Rhino API - Access js method using org.mozilla.javascript.Context?

How can i access get method in this script: (function( global ){ var Result; (Result = function( val ) { this.tpl = val || '' ; }).prototype = { get: function () { return 'text' ; } …
Tien Nguyen
  • 3,798
  • 8
  • 28
  • 42
0
votes
1 answer

Retrieving json from stringified javascript function returned in http response

I have java (JDK6) code that sends an http get request with parameters. The response that I get back is a javascript function that contains within it a json tree containing the response to the query parameters provided in the request like the…
0
votes
0 answers

Javascript engines and ajax

I'm reading about JS engines in modern browsers (V8, SpiderMonkey, Chakra...) There isn't any information (or I missed it somehow) about Ajax (XHR request) optimization. Is there such a thing? P.S. Maybe there isn't any space for the optimization…
OzrenTkalcecKrznaric
  • 5,227
  • 3
  • 27
  • 50
0
votes
0 answers

Benchmarking Javascript vs Actionscript

Are there standard code snippets used for benchmarking Javascript engines vs other technologies? Can you link to the JS benchmarking snippets described here…
ina
  • 17,912
  • 37
  • 113
  • 187
0
votes
1 answer

When is a javascript engine (like Spidermonkey) going to build in a library like jquery, mootools, etc.. and how can anyone help this to come about?

We all know the great benefits that js libraries such as jquery and mootools etc. have contributed to web browsers and web development. These libraries are now included in a lot if not most of all websites. So, I was wondering why none of the…
e-motiv
  • 5,861
  • 5
  • 25
  • 27
0
votes
1 answer

How to call javascript functions from blackberry native?

I am developing an app where i need to call some methods from blackberry native to javascript. when i click on back key down event , i want to trigger the onBackKeyDown() method, which is declared in javascript. Main.java protected boolean…
code_finder
  • 1,340
  • 1
  • 21
  • 39
0
votes
2 answers

Unable to load new Page using window.location from java code

I have one interceptor, in which I hv to redirect to main Page if session is invalid. I want to use window.location for same, but giving error. My Interceptor is : @Override public boolean preHandle(HttpServletRequest request, …
Naresh J
  • 1,959
  • 4
  • 24
  • 38
-1
votes
2 answers

Is jquery a **normal** library to javascript the same way Math is a library to c++, python or even js?

I'm new to web development, I'm discovering javascript and all its capabilities. I'm currently learning jQuery and it made me wonder: "what really is a library ?". From some so/internet search I understand that jQuery is a library, although some…
m.nachury
  • 882
  • 5
  • 21
1 2 3
10
11