Open GoogleCodeExporter opened 8 years ago
This post shows an example of using the CEF DOM API for hooking up
to the DOMContentLoaded event:
http://magpcss.org/ceforum/viewtopic.php?p=17302#p17302
This can also be done in javascript and communicated back with native
code through js bindings. In OnLoadStart() call ExecuteJavascript()
that adds an event listener for DOMContentLoaded, this listener will
call window.CefPython.OnDomReady() that is a js binding. Though, with
the current CEF Python JS binding implementation not every browser has
a JavascriptBindings object set, it is being done explicitily by user,
this complicates things a bit. What if the browser doesn't have js
binding object set, what if we set it, but user overwrites it later?
This solution should not mess up with user js bindings object.
The example that uses the CEF DOM API looks much easier to implement.
Original comment by czarek.t...@gmail.com
on 1 Aug 2013 at 9:11
[deleted comment]
See also CEF Issue 1454 "Add callback for document element creation":
https://code.google.com/p/chromiumembedded/issues/detail?id=1454
Original comment by czarek.t...@gmail.com
on 17 Jan 2015 at 6:25
Project will move to Github. Find this issue at the new address (soon):
https://github.com/cztomczak/cefpython/issues/32
Original comment by czarek.t...@gmail.com
on 24 Aug 2015 at 6:26
Original issue reported on code.google.com by
czarek.t...@gmail.com
on 28 Nov 2012 at 1:10