glWebKit icon indicating copy to clipboard operation
glWebKit copied to clipboard

C++ Event Listeners

Open uniquejack opened this issue 6 years ago • 1 comments

How can I communicate between html doms and C++? I'd like to know if there is any way to create an eventlistener for most common dom events like button click, focus, unfocus etc etc

uniquejack avatar Nov 11 '18 23:11 uniquejack

I believe that you need to derive a class from IJSBoundObject that overrides the invokeMethod() member function. Register your class with your View (using the BindJavaScriptObject function). Then in your HTML/Javascript call your registered object's function when a button onclick event occurs.

I'll close this once I get a working example in the source.

bholcomb avatar Dec 24 '18 14:12 bholcomb