This is really frustrating. I've downloaded TChromium from the following link: http://dcef3.googlecode.com/svn
managed to install it and I have also managed to pass some data from delphi XE2 to my web page using some JavaScript.
I am new to TChromium and the documentation out there is not helping me very much. I need to run some Delphi code after the user click on a web button. When the user clicks on a web button element I want to run some Delphi code. Could you help with some examples? None of the examples out there seem to work. They seem the copy and paste of the same solution that it is just not working on dcef3 and Delphi XE2.
For example I have tried the following link: How to expose "native functions" to Javascript in a web page using Chromium and Delphi 6?
- I have copied the line
RegisterExtension;
in the initialization part of my main form. - I copied the
procedure RegisterExtension;
after the uses section of my main form. - Then I have put the
TMyHandler = class(TCefv8HandlerOwn)
definition before the declaration of my main form and implemented the "Execute" method. - Put the code
Frame.ExecuteJavaScript('cef.test.test_object().GetMessage();', 'about:blank', 0);
in a button on my main form
When i click it nothing happens... Any clue?
I am using Delphi XE2.
Thank you for your help