JSRTTIExtension demo

Post Reply
Posts: 7
Joined: Tue Feb 25, 2020 8:27 am

JSRTTIExtension demo

Post by lasaranza » Fri Mar 27, 2020 12:55 am


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.

User avatar
Posts: 2223
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain

Re: JSRTTIExtension demo

Post by salvadordf » Fri Mar 27, 2020 11:40 am

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.

Post Reply