Page 1 of 1

Re: MutationObserver

Posted: Wed Oct 03, 2018 9:17 pm
by salvadordf
I've never used a mutationobserver but it's been suggested as a valid solution at the official CEF3 forum.

https://magpcss.org/ceforum/viewtopic.p ... ver#p36263
https://magpcss.org/ceforum/viewtopic.p ... ver#p30494

Re: MutationObserver

Posted: Thu Oct 04, 2018 7:45 am
by salvadordf
I just added a new context menu option in the JSRTTIExtension demo to test a MutationObserver.

Please, download CEF4Delphi again and run the JSRTTIExtension demo.

After google.com is loaded, right-click on the web page and select the "Add mutation observer" option.
That mutationobserver is triggered when the search box in google.com changes its value.
Whatever you type in the search box is sent to Delphi and you'll see it in the status bar.

Read the code comments for more details.