[webkit-help] catching JavaScript events

Luka Napotnik luka.napotnik at gmail.com
Thu Sep 10 02:47:31 PDT 2009

I've chosen a different strategy and instead of listening to JS calls
I export a C function using the JSObjectMakeFunctionWithCallback()
function call. The problem is I don't know what to do with the
returned JSObjectRef object. Must I attach it to the JSGlobalContext?
For now I'm getting "Can't find variable" if I call my function from

Any suggestions?


2009/9/10 Luka Napotnik <luka.napotnik at gmail.com>:
> Hello.
> I want to know if it's possible to catch a Javascript event from WebCore.
> I have a JavaScript function that will be called when some event
> happens. Now I want to bind the function to a C function I wrote using
> the Gtk+ port. Seeing such projects such as seed which  binds JS and
> Gtk+ I guess it's possible.
> Is there some JavaScript API I can call and get JS events eg. function calls?
> Greets,
> Luka

More information about the webkit-help mailing list