![]() ![]() |
GoFiler Legato Script Reference
Legato v 1.6e Application v 6.3a
|
| Table of Contents | < < Previous | Next >> |
Chapter Twenty-one — WebView Interface
The JavaScript Interface object represents a running JavaScript instance. Currently the JavaScript Interface only uses the WebView Object as the JavaScript Engine. This means any JavaScript code executed must be compatible with the Microsoft Edge browser JavaScript Engine.
JavaScript is presently released as a capabilities preview. API functions and features are subject to change.
JavaScripts can be run asynchronously through Legato. Because of this developers should ensure they allow the WebView object time to process the JavaScript (and any user input for the JavaScript).
21.2.3 JavaScript Side Scripting
A JavaScript program can be injected into the current WebView, interact with the DOM and return data back to Legato. A handle is returned for a JavaScript Object that can then be used to check the status of the script and retrieve data from the script.
Messages can be sent from JavaScript to Legato through the JavaScriptSetMessageHandler function. Because these messages are posted from JavaScript, responses are not possible. Instead, when a message is received developers can run additional JavaScript code if needed. Please see the documentation for JavaScript interaction with the WebView2 control from Microsoft for more information on posting messages.
Page revised 2025-10-20
| Table of Contents | < < Previous | Next >> |
© 2012-2025 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission is prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. Novaworks, GoFiler™ and Legato™ are registered trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are the property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.