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.

How to wait for the execution of the script

Post Reply
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

How to wait for the execution of the script

Post by ForestListener »

Hello!

I run the Javascript this way:

Code: Select all

Chromium1.ExecuteJavaScript(JSCode,Chromium1.browser.MainFrame.GetURL(), 0);
How can i know, when the Javascript will finish the work?

Thank you for any helpful suggestions!
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to wait for the execution of the script

Post by salvadordf »

Hi,

You need to register a JavaScript extension to send data from JavaScript to Delphi.

Use the JSRTTIExtension or JSExtension demos as a template for your app and read the code comments for more information.
ForestListener
Posts: 44
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to wait for the execution of the script

Post by ForestListener »

Thank you, Salvador.
Post Reply