JavaScript and Desktop 2021 - for Windows

Does anyone have a plug-in or some kind of method to use JavaScript on a Desktop HTMLviewer?

I am trying to create a platform for users to edit websites on a Desktop app and the code must include execution of JavaScript on an HTMLviewer panel.

This also includes live chat software and sadly that is run using JavaScript includes from a third-party web service.

Thanks

Take a look at the documentation for ExecuteJavaScript, ExecuteJavaScriptSync, and the JavaScriptRequest event. There’s also the example that I wrote for working with this functionality which can be found in Examples > Desktop > Controls > HTMLViewer-Exec.xojo_binary_project.

This all requires using the WebKit renderer on Windows.

1 Like

Check our blog post for MBS Plugins:

HTMLViewer JavaScript communication for Xojo

1 Like