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.

JSRTTIExtension demo

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

JSRTTIExtension demo

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: JSRTTIExtension demo

Post 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.
Post Reply