Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidCode SnippetDelphiDemoFiremonkeyIOS

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

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE6 Firemonkey TWebBrowser Evaluate Javascript | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSOne 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.

Related posts

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

Sign up for our Newsletter and
stay informed

Leave a Reply