Execute a CefDomVisitor after a DOM change?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Execute a CefDomVisitor after a DOM change?

Postby Tsury » Wed Apr 20, 2016 6:51 am

I have a custom element which defines some logic using a CefDomVisitor.
If I add this element statically to the page, everything works fine, but I need to dynamically add it to the page, after it had been already loaded.

What would be the best way to achieve this? Can I somehow get CEF events about DOM changes?
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am

Re: Execute a CefDomVisitor after a DOM change?

Postby magreenblatt » Wed Apr 20, 2016 10:25 am

Probably best done using JavaScript.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Execute a CefDomVisitor after a DOM change?

Postby Tsury » Wed Apr 20, 2016 10:30 am

magreenblatt wrote:Probably best done using JavaScript.


MutationObserver it is then, thanks.
Tsury
Mentor
 
Posts: 63
Joined: Mon Jan 19, 2015 4:31 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 47 guests