How to wait for the execution of the script

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

How to wait for the execution of the script

Post by ForestListener » Sun Jul 07, 2019 1:52 pm

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: 1653
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to wait for the execution of the script

Post by salvadordf » Sun Jul 07, 2019 2:04 pm

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: 12
Joined: Sun Jul 07, 2019 1:46 pm

Re: How to wait for the execution of the script

Post by ForestListener » Sun Jul 07, 2019 2:22 pm

Thank you, Salvador.

Post Reply