Return a DOM node from ExecuteFunctionWithContext?

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.

Return a DOM node from ExecuteFunctionWithContext?

Postby emerick » Wed Jan 23, 2013 1:02 pm

Hi,

I'm calling a JavaScript function that returns a DOM node via ExecuteFunctionWithContext(). Is there any way for me to convert/cast that node into a CefDOMNode? I need to perform some additional operations on it from the C++ side.

Thanks,

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA

Re: Return a DOM node from ExecuteFunctionWithContext?

Postby magreenblatt » Wed Jan 23, 2013 1:10 pm

Unfortunately not. You can, however, access all of the JS members and properties of the DOM node using C++ via ExecuteFunction, GetValue, etc.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Return a DOM node from ExecuteFunctionWithContext?

Postby emerick » Wed Jan 23, 2013 1:25 pm

OK, that's what I figured, but I wanted to double check. Thank you.

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA


Return to Support Forum

Who is online

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