CefFrame from a CefDOMDocument or CefDOMNode

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.

CefFrame from a CefDOMDocument or CefDOMNode

Postby prad » Tue Jan 15, 2013 1:56 pm

Can I get a CefFrame from a CefDOMDocument or CefDOMNode?

Or can I get the complete HTML page from a CefDOMDocument or CefDOMNode?
prad
Techie
 
Posts: 10
Joined: Wed Dec 12, 2012 11:06 am

Re: CefFrame from a CefDOMDocument or CefDOMNode

Postby magreenblatt » Tue Jan 15, 2013 2:01 pm

You are getting the CefDOMDocument via a call to CefFrame::VisitDOM(), so keep a reference to the CefFrame in your CefDOMVisitor implementation.

The easiest way to get the complete HTML is via CefFrame::GetSource(). CefDOMDocument::GetDocument()->GetAsMarkup() may also be the complete HTML (I have not tested this).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 201 guests