Page 1 of 1

JSRTTIExtension demo

Posted: Fri Mar 27, 2020 12:55 am
by lasaranza
Hi,

This demo is using a rtti class extension that has procedures. I am trying to use the rtti extension in my application but my delphi class extension also has functions. How can I send back the result of a function from delphi side to the javascript side? I don't see a way to do it from OnProcessMessageReceived event.

Re: JSRTTIExtension demo

Posted: Fri Mar 27, 2020 11:40 am
by salvadordf
You can send information in both ways. Use TChromium.SendProcessMessage to send a message to the render process or simply execute some custom JavaScript code with that information by using TChromium.ExecuteJavaScript

Read the code comments in the JSExtension demo for more information.