Get the Dom of the page (not javascript way)

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

Get the Dom of the page (not javascript way)

Postby Piero » Tue Sep 20, 2016 11:12 am

Good evening,
I would like to know if there is a way to get the DOM of the page without using JavaScript. I saw that directly using C ++ classes this can be done and then I wonder why this feature is not available in JCEF. It will be implemented later? If yes, can I know an estimated date?
Piero
Newbie
 
Posts: 2
Joined: Tue Sep 20, 2016 10:55 am

Re: Get the Dom of the page (not javascript way)

Postby magreenblatt » Tue Sep 20, 2016 3:42 pm

It is not supported because using Java to execute the renderer process is too slow and complicated.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Get the Dom of the page (not javascript way)

Postby Piero » Wed Sep 21, 2016 4:20 am

Thank you for the reply. I have another question then.
Is there a way to get the DOM in object form and not as a string using javascript? I need the positional information of the nodes, and be able to listen and add events on them.
Piero
Newbie
 
Posts: 2
Joined: Tue Sep 20, 2016 10:55 am

Re: Get the Dom of the page (not javascript way)

Postby magreenblatt » Wed Sep 21, 2016 11:32 am

Piero wrote:Thank you for the reply. I have another question then.
Is there a way to get the DOM in object form and not as a string using javascript? I need the positional information of the nodes, and be able to listen and add events on them.

You can do all of that in JavaScript that runs in the renderer process. Use CefMessageRouterHandler to communicate the minimal necessary information to the browser process.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 26 guests