Execute Javascript In TWebBrowser From Delphi XE6 Firemonkey On Android And IOS

Delphi XE6 Firemonkey TWebBrowser Evaluate JavascriptOne of the new features in Delphi XE6 Firemonkey is two new functions for TWebBrowser on Android and IOS. These functions are EvaluateJavaScript() and LoadFromStrings() which allow you to execute Javascript functions from Delphi or load a web page straight from a TStrings object instead of from a URL or a file. Nikolay from Embarcadero has a blog post up where he demonstrates using these two functions to manipulate Google Maps. In Delphi XE5 Firemonkey there are third party components like TMS iCL and DPF IOS that implement this same functionality but this new functionality is built into Delphi XE6. Nikolay stores the HTML in a constant and then loads it with LoadFromStrings. Lastly he uses EvaluateJavaSript to create a route on the map within TWeBrowser by clicking a button in Delphi XE6. The TChromiumFMX web browser component for Firemonkey on Windows also has similar functionality.

Head over and read the full blog post from Nikolay about using the features of TWebBrowser in Delphi XE6.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Execute Javascript In TWebBrowser From Delphi XE6 Firemonkey On Android And IOS by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Delphi XE6 IDE Theme Skin Editor
Customize Delphi XE5, XE6, and AppMethod With The Delphi IDE Theme Editor

Rodrigo Ruz has released a new version of the Delphi IDE Theme Editor (DITE) with support for Delphi XE5, Delphi...

Close