[webkit-dev] How can I call a javascript function from the hosting application

fredx21 fredx21 at hotmail.com
Mon Jan 10 11:32:23 PST 2011


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?

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