glWebKit
glWebKit copied to clipboard
C++ Event Listeners
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
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.