![]() ![]() * `runjs.callback()` Calls x-success URL without result. If x-success parameter is not set `close()` will be called. * `runjs.callback(value)` Calls x-success URL by adding the value as `input` parameter (URL encoded). * `runjs.printHTML(out)` displays given HTML on screen. * `runjs.print(out)` prints given parameter as string on screen. * `runjs.getInput().json()` returns input as JSON. * `runjs.getInput().text()` returns input as text. Enable *Always Open in Editor* setting to view the code without executing. You can shake the device while running the script to display a developer menu. RunJavaScript provides some functions to be used by custom scripts. If provided input data will be retrieved from parameter named by `inputName`. * `inputName`(optional) Parameter name used as input. ![]() * `x-error`(optional) A URL that will be called if the given script has an error. * `x-success`(optional) A URL to open when execution is successful. Input can be text (URL encoded), JSON (URL encoded) or other format. * `input`(optional) input data to be used by the script. It is useful while making REST calls to remote servers. * `baseURL`(optional) value will be set as the origin of execution environment. Either `script` or `file` parameter is required. `script` parameter can be used at the same time and given script will be executed after the file. Any http resource will be rendered as web page and RunJavaScript API will be injected. Files ending with _.html_ will be rendered as web page and RunJavaScript API will be injected. Files ending with _.js_ will be handled as script file. * `file` is used to execute JavaScript files stored in the local documents folder or at a remote location. It should match the code configured in settings otherwise script will open in editor mode with an alert. * `code` (optional) Security code for the script. * `script` URL encoded JavaScript to run. Runjavascript://x-callback-url/run?script=&code=&file=&input=&baseURL=.&x-success=.&x-error=.įollowing URL parameters can be provided: RunJavaScript registers the `runjavascript://` URL scheme and supports `x-callback-url` protocol. You can use your favourite editor to edit the JavaScript files. * WebDAV server to access the script files. ![]() * Execute JavaScript files stored in App documents Utilising the specification, you can add JavaScript steps into your workflows using other apps like, , etc. You can build, integrate and automate using **RunJavaScript**, it is a powerful companion if you integrate it with other apps using the URL scheme. This application provides a JavaScript development environment directly on your IOS device. Build, integrate and automate using JavaScript on IOS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |