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
AndroidComponentDelphiDemoFiremonkeyIOSLinuxOSXShowcaseWindows

Experience ChatGPT As A Native Cross-Platform Firemonkey Application

DelphiLibraryWindows

Run Large Language Models Entirely On The GPU With Delphi And Vulkan

Code SnippetDelphiDemoLibraryWindows

Add Real-Time AI Voice Conversations To Windows Applications

ComponentDelphiDemoLibraryWindows

Give AI Models Eyes, Ears, And Real-World Capabilities

Sign up for our Newsletter and
stay informed
[mailpoet_form id="1"]

Leave a Reply