Hi Friends, sorry for the ignorance. do you have an example of a communication between javascript and chromium?
I can call javascript functions but I can't retrieve the result.
Surely I am getting the PostMessage wrong.
Thank you all
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Sending messages from JS to chromium
- salvadordf
- Posts: 4093
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Sending messages from JS to chromium
Hi,
There are several demos showing how to send information from JavaScript to Delphi.
Read the code comments in the DOMVisitor and JSExtension demos.
See all the demos inside the CEF4Delphi\demos\Delphi_VCL\JavaScript directory and read this document :
https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md
There are several demos showing how to send information from JavaScript to Delphi.
Read the code comments in the DOMVisitor and JSExtension demos.
See all the demos inside the CEF4Delphi\demos\Delphi_VCL\JavaScript directory and read this document :
https://bitbucket.org/chromiumembedded/cef/wiki/JavaScriptIntegration.md
Re: Sending messages from JS to chromium
Thanks, I can't solve my problem anyway, I think I will use webView