Page 1 of 1

callback when dom-element changes

PostPosted: Wed May 09, 2018 7:26 am
by inx
hello.

is there a way to get a callback if a dom-element changes?
did not find anything, but maybe i overlooked something...

thanks,
inx

Re: callback when dom-element changes

PostPosted: Wed May 09, 2018 2:10 pm
by magreenblatt
Use javascript mutation events.

Re: callback when dom-element changes

PostPosted: Thu May 10, 2018 4:20 am
by inx
ah okay, i see.

using javascript to send a query whenever a dom-element changes and then handling that query with a CefMessageRouter.
appending the value of the dom-element to the query as string...

is the only way to communicate from java<->javascript using strings?

thanks!