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.

about TMyV8Handler = class(TCefv8HandlerOwn)

Post Reply
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: about TMyV8Handler = class(TCefv8HandlerOwn)

Post by salvadordf »

Hi,

JavaScript is executed in a different process than the main browser process. This means that you can't access form variables from JavaScript because windows processes are isolated.

Try sending messages between processes as explained in the JavaScript demos comments.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: about TMyV8Handler = class(TCefv8HandlerOwn)

Post by salvadordf »

GlobalCEFApp_OnProcessMessageReceived receives an ICefProcessMessage with the message arguments.
You can call JavaScript functions with those arguments or store them in a variable that belongs to that process.
Register an extension to use a Delphi function from JavaScript that uses the values you stored previously.
Post Reply