Re: [webkit-dev] how do you do callbacks out of webkit into c++, objC or other bindings - e.g. onclick ?

2008-08-31 Thread Luke Kenneth Casson Leighton
You can add event listeners for any event and any event target. The name of the function to add an event listener is addEventListener. To identify the event you want to listen to, you pass the event name. Events have names like resize, click, beforeclose, blur, etc. it works.

[webkit-dev] how do you do callbacks out of webkit into c++, objC or other bindings - e.g. onclick ?

2008-08-30 Thread Luke Kenneth Casson Leighton
pyjamas-desktop is the test-case for the glib bindings - but ignore that, i have a general question for which pyj/d is a specific case: in javascript, you can set an element's onclick method. how the heck do i get a callback, into c++, objc or any other binding, from an onclick? is there a

Re: [webkit-dev] how do you do callbacks out of webkit into c++, objC or other bindings - e.g. onclick ?

2008-08-30 Thread Darin Adler
On Aug 30, 2008, at 5:35 PM, Luke Kenneth Casson Leighton wrote: in javascript, you can set an element's onclick method. how the heck do i get a callback, into c++, objc or any other binding, from an onclick? is there a mechanism for calling back, from javascript, into the bindings?

Re: [webkit-dev] how do you do callbacks out of webkit into c++, objC or other bindings - e.g. onclick ?

2008-08-30 Thread Darin Adler
On Aug 30, 2008, at 7:00 PM, Darin Adler wrote: The clickListener object must be a class that implements the DOMEventListener protocol. What I meant to say was: The clickListener object must be an object of a class that conforms to the DOMEventListener protocol. -- Darin