Page 1 of 1

How to wait for the execution of the script

Posted: Sun Jul 07, 2019 1:52 pm
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!

Re: How to wait for the execution of the script

Posted: Sun Jul 07, 2019 2:04 pm
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.

Re: How to wait for the execution of the script

Posted: Sun Jul 07, 2019 2:22 pm
by ForestListener
Thank you, Salvador.