The integration of WebKit and the Chromium Embedded Framework (CEF) is a very interesting and powerful extension to Xojo. However, the potential of this integration is only available very rudimentarily and developers can only use basic functions at the moment.
Many software developments already use the possibility to integrate JavaScript, CSS and HTML for certain parts of their software like dashboards, special editors, for web developments, graphical representations and listings and much more.
If you look at those applications that already use CEF, you will recognize many known products. See https://en.wikipedia.org/wiki/Chromium_Embedded_Framework
I believe that we need only a few additional extensions (consistent across all platforms) in order to make better use of this. This was already demanded also in other threads on this forum.
-
EvaluateJavaScript first of all - availability on all platform (also iOS)
A good extension would be - if we could give the EvaluateJavaScript function a return value as well. A JSON string with data or a boolean value to determine if a function was execute correctly
Please also allow communication in the other direction JavaScript to Xojo
- Maybe with JavaScript callbacks register a function which you can call from JavaScript and this calls an event in Xojo like xojo.doSomething(hello);
Please see
https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md
I think a similar technique is used by PhoneGap/Apache Cordova to make many things possible.
The use of NewWindow and TitleChanged events are not very flexible and modern concepts to combine Xojo with this powerful browser.