Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
JS.New
Creates a new JavaScript engine instance.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| JavaScript | 10.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
none
Result
Returns JS reference number or error.
Description
Creates a new JavaScript engine instance.This object contains all the functions and properties you defined.
Please release the object later with the JS.Release function.
Your own JavaScript engine is useful for:
- Running some snippet of JavaScript code without web viewer.
- Using various JavaScript libraries
- Providing a scripting language to your own solution.
- Doing JavaScript on server side.
- Working with JSON data
- Enjoy using regular expressions, unicode text functions, number parsing and formatting with no platform dependencies
Examples
Evaluate a bit of JavaScript:
Set Variable [ $js ; Value: MBS( "JS.New" ) ]
Set Variable [ $r ; Value: MBS( "JS.Evaluate"; $js; "4+5") ]
Show Custom Dialog [ "Result" ; $r ]
Set Variable [ $r ; Value: MBS( "JS.Release"; $JS ) ]
See also
- JS.AddFileMakerRunScriptFunction
- JS.AddFunction
- JS.EvaluateToString
- JS.GetGlobalProperty
- JS.ObjectCount
- JS.Release
- JS.SetGlobalProperty
- JS.StringCount
- JS.TimeToUTCDate
- JS.UTCDateToTime
Example Databases
- JavaScript/CoordinatDistance
- JavaScript/JavaScript libPhoneNumber
- JavaScript/JavaScript
- JavaScript/RichTextToJSON
- List/Sort Benchmark
Blog Entries
- New in the MBS FileMaker Plugin 10.1
- FileMaker and JavaScript - the perfect combination
- New in the MBS FileMaker Plugin 10.0
- CRC function in FileMaker using JavaScript
- Our JavaScript engine for FileMaker
Created 7th December 2019, last changed 29th October 2020
JS.GetGlobalPropertyValue - JS.Now
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins