Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Component: JavaScript
Run Javascript without Webviewer cross-platform, even on server.
Our JavaScript functions use DukTape as engine for cross-platform JavaScript, while the JavaScriptWebKit functions use WebKit on macOS/iOS (added Windows and Linux in v13.1).
Version | macOS | Windows | Linux | Server | iOS SDK |
10.0 / 11.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Item | Details |
---|---|
JS.AddFileMakerEvaluateFunction Adds an Evaluate function. | All 10.0 |
JS.AddFileMakerRunScriptFunction Adds a function to start scripts from JavaScript. | All 10.0 |
JS.AddFileMakerSQLFunction Defines a SQL Evaluate function for JavaScript. | All 10.0 |
JS.AddFunction Adds a global function defined as a text string. | All 10.0 |
JS.CF Calls a global function given the name with FileMaker values. | All 11.3 |
JS.CallFunction Calls a global function given the name with JSON data. | All 10.0 |
JS.CallFunctionValues Calls a global function given the name with FileMaker values. | All 11.3 |
JS.Evaluate Evaluates a JavaScript expression. | All 10.0 |
JS.EvaluateToString Evaluates a JavaScript expression. | All 10.0 |
JS.GetGlobalProperty Queries global property. | All 10.0 |
JS.GetGlobalPropertyValue Queries global property. | All 10.0 |
JS.InitModules Installs Duktape module loading. | All 11.2 |
JS.List Lists all JavaScript object references. | All 11.3 |
JS.New Creates a new JavaScript engine instance. | All 10.0 |
JS.Now Queries current time as double value. | All 10.1 |
JS.ObjectCount Queries global object counter. | All 10.1 |
JS.Release Frees the JavaScript engine. | All 10.0 |
JS.ReleaseAll Release all JavaScript environments. | All 10.5 |
JS.SetGlobalProperty Sets a global property. | All 10.0 |
JS.SetGlobalPropertyValue Sets a global property. | All 10.0 |
JS.StringCount Queries global string counter. | All 10.1 |
JS.TimeToDateComponents Converts time to date components. | All 10.1 |
JS.TimeToUTCDate Converts time value to timestamp. | All 10.1 |
JS.UTCDateToTime Converts date to time value. | All 10.1 |
24 functions shown.
These functions require a license (92%).
Release notes
- Version 13.2
- Fixed JavaScript.Available to return 1 on macOS and iOS, broken in 13.1.
- Version 13.1
- Added JavaScript.LoadLibrary and JavaScript.Available functions.
- Fixed JavaScript.New to work on iOS again.
- Version 13.0
- Added JavaScript.List function.
- Version 12.2
- Added JavaScript.CallFunction, JavaScript.GetPropertyJSON and JavaScript.SetPropertyJSON functions.
- Added JavaScript.CF function for using this JavaScript engine for custom functions, too.
- Added new parameter for JavaScript.New to name the instance.
- Updated DukTape library for JavaScript functions to version 2.7.
- Version 11.2
- Fixed error handling in JavaScript functions, broken in v11.1.
- Version 11.1
- Updated DukTape library for JavaScript functions to version 2.6.
- Version 10.5
- Added AVExport.ReleaseAll, AVRecorder.ReleaseAll, CoreML.ReleaseAll, DNSLookup.ReleaseAll, Dictionary.ReleaseAll, FM.SQL.ReleaseAll, JS.ReleaseAll, JavaScript.ReleaseAll, LDAP.ReleaseAll, PDFKit.ReleaseAll, PKCS12.ReleaseAll, PKCS7.ReleaseAll, PKey.ReleaseAll, SSH.ReleaseAll, WinSendMail.ReleaseAll, WindowsML.ReleaseAll, WordFile.ReleaseAll, and X509.ReleaseAll.
- Version 10.1
- Added time functions for JavaScript functions: JS.Now, JS.TimeToDateComponents, JS.TimeToUTCDate and JS.UTCDateToTime.
- Improved performance for using JavaScript functions in parallel scripts on Server.
- Version 10.0
- Added WebView.CallFunction to call any JavaScript function on Windows.
Blog Entries
- ISO FileMaker Magazine: MBS JavaScript Power
- Using JavaScript with WebKit on FileMaker Server on Linux
- MBS @ FMTraining.TV - Using a JavaScript library in FileMaker via the MBS Plug-in
- New in MBS FileMaker Plugin 11.3
- MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin
- Transitioning scripts for WebView2
- MBS @ FMTraining.TV
- MBS FileMaker Plugin, June 2021 News
- New in MBS FileMaker Plugin 11.2
- MBS FileMaker Plugin 11.2 - More than 6500 Functions In One Plugin