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

Post Reply
Lion85
Posts: 15
Joined: Tue Dec 06, 2022 9:19 am

Sending messages from JS to chromium

Post by Lion85 »

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
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Sending messages from JS to chromium

Post by salvadordf »

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
Lion85
Posts: 15
Joined: Tue Dec 06, 2022 9:19 am

Re: Sending messages from JS to chromium

Post by Lion85 »

Thanks, I can't solve my problem anyway, I think I will use webView
Post Reply