So only for 64-bit you benefit from newer JavaScript engine, running website in its own process and better security. If you put the WKWebViewControlMBS control on the window and for 32-bit, it will use the WebKit 1.x WebView class, while in a 64-bit application will use the newer WKWebView class. Xojo doesn’t use WebKit 2, but you can use our WKWebViewControlMBS control from the plugins. It’s perfect to call JavaScript functions or to run a piece of JavaScript.Īlternatively you can get WebViewMBS object for the HTMLViewer and than call EvaluateJavaScript there directly. This is a convenient function for MacOS to evaluate some JavaScript and return the result synchronously. EvaluateJavaScriptMBS(code as string) as string As we started with MacOS support first many years ago, those are the oldest functions for HTMLViewer. So we have WebViewMBS class (WebKit 1.x), WKWebViewControlMBS control (WebKit 2.x), Internet Explorer methods on HTMLViewer, ChromiumBrowserMBS class for Chromium Embedded Framework and LinuxWebViewMBS class for WebKit on Linux.įirst we have our extensions to HTMLViewer class. Here a few details on the various ways to run JavaScript in the HTMLViewer in Xojo. The MBS Xojo Plugins provide various functions for HTMLViewer to use JavaScript in Xojo applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |