[webkit-dev] How can I call a javascript function from the hosting application
André Pedralho
apedralho at gmail.com
Mon Jan 10 12:24:18 PST 2011
2011/1/10 fredx21 <fredx21 at hotmail.com>:
> The function "evaluateJavaScript()"is not in my Frame.h. Do you know why? Is
> there some cmake options that makes it appear in the Frame class?
>
Hi Fred, my bad! Sorry, it is only available in the Qt port.
> Regards,
> Fred
>
> -----Original Message-----
> From: André Pedralho [mailto:apedralho at gmail.com]
> Sent: Friday, January 07, 2011 2:21 PM
> To: fredx21
> Cc: webkit-dev at lists.webkit.org
> Subject: Re: [webkit-dev] How can I call a javascript function from the
> hosting application
>
> On Fri, Jan 7, 2011 at 14:35, fredx21 <fredx21 at hotmail.com> wrote:
>> My application is hosting a WebView instance to render its GUI using
>> the Windows CE port of Webkit.
>>
>>
>>
>> I need to be able to call some JavaScript functions that are written
>> into the loaded HTML page. For example, I have an
>> Init(backgroundColor) function that needs to be called once the page
>> is loaded. I guess calling a JavaScript function is trivial, but I did
>> not find an answer to my question yet.
>>
>>
>>
>> Can anyone give me pointer on how I can call a JavaScript function
>> from the hosting application?
>>
> http://doc.qt.nokia.com/4.7-snapshot/qwebframe.html#evaluateJavaScript
>
> WebView->page()->mainFrame()->evaluateJavaScript("Init(backgroundColor)"
> WebView->);
>
> BR,
>
> --
> Andre Pedralho
> http://pedralho.blogspot.com/
>
>>
>>
>> Regards,
>>
>> Fred
>>
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>>
>>
>
>
More information about the webkit-dev
mailing list