On Feb 24, 6:34 pm, Henri Gourvest <
hgourv...@gmail.com> wrote:
> Hi,
>
> If you are using Delphi 2010 and higher it is quite easy:
> First get the latest version from SVN trunk
>
> // this execute a javascript code
> Browser.MainFrame.ExecuteJavaScript('app.doit(''foo'')', '', 0);
>
> // this is your class exposed to JS
> Test = class
> class procedure doit(const v: string);
> end;
>
> initialization
> // Register your class
> TCefRTTIExtension.Register('app', Test, True);
>
> It also work with objects and it is able to synchronyse JS calls with main
> thread.
>
> If you are using other compilers it will be a bit harder,
> take a look on the cefclient.dpr demo application and the TExtension class.
>