

Get the Plugin from the BaseElements web site. But you can use it right now to execute standard JavaScript without a web viewer. This means that its feature set and API may change as new features get added or bugs fixed. In the future, I hope we can get support for CommonJS modules, HTTP requests, execute SQL and file i/o. It works, but it doesn’t show up in the function list. This function is currently marked “experimental” and is hidden. You can learn more about JavaScript at site like Mozilla. It covers only the features specified in the JavaScript spec, which is formally known as ECMAScript. It also doesn’t have any of the additional APIs provided by other JavaScript engines like Node. But it does NOT include things like AJAX requests since those come from the Browser APIs, not JavaScript itself.

It is compatible with ECMASCript 5.1 and includes some features in the upcoming ECMASCript 6. The JavaScript is executed using an embeddable JavaScript engine called duktape. It simply adds 3 to every element in the array. Here is a simple example using the “map” method of the JavaScript array prototype. It returns the value of the last executed line in the JavaScript. The new function, BE_EvaluateJavascript, takes a single text parameter the JavaScript to execute. So thanks to Nick and Mark Banks for getting it out there. with experimental support for doing just that. Over the last couple of months, I have been working with Nick Orr at Goya to get a couple of things added to the BaseElements plugin, the biggest one being the ability to execute JavaScript without a web viewer.
