Recent

Author Topic: [CEF3] Read form field in DOM and OnClick event  (Read 3006 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1315
[CEF3] Read form field in DOM and OnClick event
« on: November 23, 2015, 11:43:11 am »
I can trigger a DOM visit, and I can find the input field I'm after. But the value of the field stays the same, no matter if the user enters text in it.

I read in the CEF3 docs, that you get a copy of the DOM. I assumed that to be a copy that is created the moment you request a DOM visit, but it seems to be the same one every time.

How do I read the value? With JavaScript?


Another question: how can I register an OnClick event? I want to capture the click on the submit button.


Edit: And I was wondering why using ICefDomDocument.GetElementById gives an "Access violation" during startup: does that function not exist in the dll?
« Last Edit: November 23, 2015, 02:31:17 pm by SymbolicFrank »

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1315
Re: [CEF3] Read form field in DOM and OnClick event
« Reply #1 on: November 24, 2015, 09:15:45 am »
Anyway. It sounds nice: embedded Chrome, but it's not very practical, as most of the useful interactions have been removed by the developers.

 

TinyPortal © 2005-2018