Get HTML String or nodes; return value of javascript

Having problems with building or using the JCEF Java binding? Ask your questions here.

Get HTML String or nodes; return value of javascript

Postby aevans22 » Mon Sep 19, 2016 2:45 pm

Two questions really, as I am quite new to JCEF/CEF.

I noticed CEF has methods for getting DOM Nodes and a range of DOM Nodes. However, I do not see an equivalent in JCEF.

Is there a way to get a node or node range in JCEF?

Next, is it possible to get the return value of javascript? I know this is executed asnychronously but was wondering if I can intercept something.
aevans22
Newbie
 
Posts: 2
Joined: Mon Sep 19, 2016 2:34 pm

Re: Get HTML String or nodes; return value of javascript

Postby magreenblatt » Mon Sep 19, 2016 7:22 pm

JCEF does not expose Java bindings in the renderer process, which is what would be required to use the CefDOMNode API. You can instead execute JavaScript code using ExecuteJavaScript or the CefMessageRouterHandler class. See the detailed sample app for example usage.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: Get HTML String or nodes; return value of javascript

Postby aevans22 » Tue Sep 20, 2016 11:03 am

I was trying to get the response from such manipulation but cannot seem to get the string. Would I use some sort of message routing?
aevans22
Newbie
 
Posts: 2
Joined: Mon Sep 19, 2016 2:34 pm

Re: Get HTML String or nodes; return value of javascript

Postby tgraupmann » Thu Feb 16, 2017 6:59 pm

[deleted]
Last edited by tgraupmann on Sat Feb 18, 2017 12:46 am, edited 1 time in total.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: Get HTML String or nodes; return value of javascript

Postby tgraupmann » Thu Feb 16, 2017 10:10 pm

[deleted] now that I have partially a clue to what library I'm in...
Last edited by tgraupmann on Sat Feb 18, 2017 12:45 am, edited 1 time in total.
tgraupmann
Techie
 
Posts: 16
Joined: Tue Feb 14, 2017 12:51 pm

Re: Get HTML String or nodes; return value of javascript

Postby magreenblatt » Fri Feb 17, 2017 10:56 am

This thread is in the JCEF forum and you're asking about C#. Please don't post on old threads in unrelated forums.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 18 guests