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 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.

Related posts
DelphiFiremonkeyIDEIOSOSXWindows

DelphiCon 2020 FireMonkey Sessions Available Starting November 19

AndroidC++BuilderDelphiDemoFiremonkeyWindows

Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

Sign up for our Newsletter and
stay informed

Leave a Reply