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
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

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

Sign up for our Newsletter and
stay informed

Leave a Reply