Does anyone know what class/function I should use in WebKit to execute
a JavaScript function from C++?

KJS::JSObject::call invokes a function object as a function. You will need to retrieve the appendMessage function object from the global object in order to call it.

If you're asking about API, not internal code, there's JSObjectCallAsFunction in the C API. I'm not sure how the GDK port of WebKit interacts with the C API, though.

Geoff

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to