WARNING: This server provides a static reference view of the NetKernel documentation. Links to dynamic content do not work. For the best experience we recommend you install NetKernel and view the documentation in the live system .

Endpoint
Name:JavascriptRuntime
Description:
Id:JavascriptRuntime
Category:accessor
Identifier Syntax

JavascriptRuntime is an accessor using Active URI syntax with the following base identifiers:

Base
active:javascript

and the following arguments: (for more details on argument passing details see here)

ArgumentRulesTypingDescription
operator
Mandatory
Representation (java.lang.Object)Javascript to execute
varargs [varargs] Any quantityRepresentation (java.lang.Object)Varargs allows an arbitrary number of additional unspecified arguments.
Request Verbs

The following verbs are supported:

Verbs
SOURCESINKEXISTSDELETENEW
Response

The response representation of this accessor for SOURCE requests is unknown.

This accessor throws no documented exceptions.

Import Requirements

To use JavascriptRuntime accessor you must import the module urn:org:netkernel:lang:javascript:

<import>
  <uri>urn:org:netkernel:lang:javascript</uri>
</import>

The Javascript language runtime executes a compiled Javascript program.

NKF context

Each invoked Javascript script is provided with a global context variable which is an instance of INKFRequestContext

For example to make a SOURCE request in Javascript ...

context.source("res:/myresource");