rhino Questions
2
Solved
I'm trying to adapt this answer to the case of regexp replacement:
<scriptdef name="propertyregex" language="javascript">
<attribute name="property"/>
<attribute name="input"/>...
Gap asked 22/10, 2014 at 13:52
1
Solved
We use mozlia rhino to generate dynamic class, then load JsClass by custom classloader like this
DynamicClassLoader loader = new DynamicClassLoader(JavaScriptFactory.class.getClassLoader());
Class...
Addle asked 1/6, 2016 at 9:31
1
I am really stuck at this now..
Essentially I have a Java Map, which I would like to pass it to a Javascript Code, so that in my JS code I can use dot notation to refer the keys in this Map. ( I k...
3
Solved
I'm trying to use Mozilla Rhino in my Java application for Android to evaluate some JavaScript. I am using Eclipse + ADT plugin.
First I tried simply downloading the Rhino .jar file from Mozilla's...
1
Solved
I have a Java 7 program, that loads thousands of objects (components), each with many parameters (stored in a Map), and executes various Rhino scripts on those objects to calculate other derived pa...
Vibraphone asked 4/3, 2016 at 23:5
5
Solved
I've been reading about Rhino as a useful way to implement JavaScript inside my Java code.
After reading for a while, searching in google and here, I couldn't find a real reason for which I would ...
Baziotes asked 24/9, 2009 at 14:37
4
Solved
Does the Rhino engine have an api that can stop the execution of a
script fie in the middle. For example, I have a script file in which
there is an infinte loop. How can I stop the execution in t...
2
Based on the discussion converting string representation of unknown date-format to Date in java, I want to use the JavaScript Date function in my App-Engine project. However, ScriptEngine does not ...
Arbitrate asked 17/10, 2015 at 22:59
6
Solved
Part of our java application needs to run javascript that is written by non-developers. These non-developers are using javascript for data formatting. (Simple logic and string concatenation mostly)...
Paraprofessional asked 18/9, 2008 at 16:1
2
I'm following up on this answer:
I managed to run simple JavaScript code from Rhino Engine on Java.
But when it comes to D3.js, for example:
var svg = d3.select("body").append("svg")
as you ca...
Foote asked 3/7, 2014 at 15:6
3
I'm trying to use the Mozilla/Rhino js engine to test some SOAP requests in the command line. However, none of the normal objects for making requests (XMLHttpRequest, HttpRequest) seem to be availa...
Condolent asked 3/3, 2014 at 21:33
2
Solved
I have an instance of this Java class accessible in my Javascript program
public class ContentProvider {
public Object c(int n) {
switch (n) {
case 1: return 1.1;
case 2: return 2.2;
case 3: ...
Keeton asked 12/5, 2015 at 8:2
1
I'm trying to take control over the Play/Pause html DOM elements (in a browser open in a pc) from an android device.
In the html page (in Google Chrome browser) there's a <video> tag so I ca...
Laveta asked 23/4, 2015 at 17:3
4
I'm making a falling sand game in Java. I want users to be able to write their own engine for it using a simpler language. Falling sand games can be very CPU intensive so I want to have the engine ...
Ninon asked 2/10, 2010 at 1:35
0
I'm extending a server application written in Java to allow user-defined callbacks (written in Javascript) to be run in response to requests. I've done some reading, and while it seems possible to ...
Glyphography asked 6/3, 2015 at 19:4
1
I've used Rhino for a scripting component inside graphics. In the project there are about 200 small scripts running independantly. Immediately when starting the application the scripts should be at...
Gytle asked 12/9, 2014 at 14:53
2
Let's say I have my.js file that has dependency on nodejs fs module. Like:
var fs = require('fs');
The question: How can I load Core NodeJS module like "FS" in My Mozilla Rhino Java Code to be a...
Monophagous asked 3/7, 2014 at 17:56
2
Solved
I'm running JSLint checks in Rhino using jslintant.js.
I found something a bit strange and was wondering if I could gets some input from other programmers. Basically, the following line gets a JS...
Epigraphic asked 1/11, 2011 at 13:4
6
Solved
I want do compile all *.less scripts in a specific folder and it subdirs with less-rhino-1.1.3.js.
There is an example on github for doing this for a specific file, which works perfect. But I wan...
1
I'm using Rhino in android to execute JavaScript function code in Android(java) and get the result from this code, but I got this exception
01-22 11:33:57.063: E/AndroidRuntime(29175): Caused b...
Ondometer asked 22/1, 2013 at 8:53
2
I need to somehow deep clone the entire set of bindings of my ScriptEngine object.
What I have tried
I have tried so far the Cloner library to clone the entire Bindings structure. This would be ...
Kunin asked 20/6, 2012 at 9:2
4
Solved
In my code, all of the scripts are contained in .js files. Whenever one of the scripts contains an error, I get this:
javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: R...
1
Solved
This is related to this other question:
Last evaluated expression in Javascript
But I wanted to provide more details about what I wanted to do and show how I finally solved the problem as some us...
Cinerama asked 28/5, 2014 at 18:33
1
Solved
Is there any way of getting the current version of Rhino within the javascript it is interpreting?
Borgerhout asked 10/4, 2014 at 13:45
3
Solved
its a server side Javascript (rhino engine), so setTimeout is not available. how to run a function asynchronously?
Antinomy asked 14/2, 2010 at 16:9
© 2022 - 2024 — McMap. All rights reserved.