[webkit-help] Calling JS Function From C

Adam Roben aroben at apple.com
Thu Jan 27 09:13:44 PST 2011


On 1/27/2011 1:25 AM, Nimish Nayak wrote:
> Hi all
>
> In WinLauncher the WebFrameLoadDelegate Interface has already been 
> implemented.In the function didClearWindowObject I called my own 
> function where I Make a function with a call back set it as the 
> property and call a C function from JS But how can i call a JS 
> function from C.
> I was reading online i saw JSObjectGetProperty and 
> JSObjectCallAsFunction but I am not able to understand the parameters 
> well of both these functions is ther a way i can get this done.?

Perhaps this will help you?

http://developer.apple.com/library/mac/#documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/JSObjectRef_h/index.html%23//apple_ref/c/func/JSObjectCallAsFunction

-Adam



More information about the webkit-help mailing list