Hi Michael,
This does exactly what I need - thank you.
Not having had much to do with javascript or DCEF I had no idea about the console or the .log function. Interestingly, having an OnConsoleMessage handler gave me a warning about including multiple references to Google Maps in my html - so that was also useful.
I will also take your lead and have that javascript format the polygon data so that the handler can filter that and give the user a "save polygon" dialog.
I had been attempting to get a number of the COM/Extension type callback things to work along the lines of various posts on this subject but had had no luck. One of the lines that I tried used objects that didn't exist in the current version of ceflib.pas (perhaps TCefStyleHandlerOwn ? IIRC).
I compared files that Tortoise brought down from the trunk with files that you see when browsing the turnk and I note that they are different. Take ceflib.pas for example: I have 14049 lines whereas the browsed trunk had 11000 odd lines when I browsed on the weekend and as I say there where classes in the shorter (and I assume older version) that where not in my SVN copy. I note today (20/11/2012) that "browsing" the source (
http://code.google.com/p/dcef3/source/browse/trunk/src/ceflib.pas) this file now has 14143 lines - i.e. changed since Saturday. Is it still then release 23?
I guess that all means that the trunk is subject to change without notice - a work in progress.
For the more exotic methods of passing data back to Delphi from javascript it would be nice if there was a working VCL example (demo) that uses the current version of the libraries. Lots of the little snippets that people have posted don't quite close the loop.
Anyway, thanks again for your help.
Cheers,
Mark