Skip to content Skip to sidebar Skip to footer
Showing posts with the label Rhino

Resolving Modules Using Require.js And Java/rhino

I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino. I'm … Read more Resolving Modules Using Require.js And Java/rhino

Access Variable Of Scriptcontext Using Nashorn Javascript Engine (java 8)

I used the following code with the Rhino JavaScript engine in Java: @Test public void testRhino() t… Read more Access Variable Of Scriptcontext Using Nashorn Javascript Engine (java 8)

Is It Possible To Add Function.caller Support To Rhino?

Looking at it, Rhino doesn't support the caller property for functions - does anyone know if th… Read more Is It Possible To Add Function.caller Support To Rhino?

Safely Running Javascript Code In Java

I am sorry if this is an unclear title because I do not know all the terminology, so please bear wi… Read more Safely Running Javascript Code In Java

How To Run A Javascript Function Asynchronously, Without Using Settimeout?

its a server side Javascript (rhino engine), so setTimeout is not available. how to run a function … Read more How To Run A Javascript Function Asynchronously, Without Using Settimeout?

How Can I Add An Object Property To The Global Object In Rhino Javascript

I have some properties in an object that I would like to add to the global namespace. In javascript… Read more How Can I Add An Object Property To The Global Object In Rhino Javascript

Rhino - Passing A Javascript Object To Java

Im quite new to Rhino and my question is around how to achieve the following, Say I have a javascri… Read more Rhino - Passing A Javascript Object To Java

Js - 'this' Is Undefined When Calling Method 'indirectly'

My goal is to call a function from a table of functions to generalize command handling (i.e indirec… Read more Js - 'this' Is Undefined When Calling Method 'indirectly'