2011/1/10 fredx21 <[email protected]>: > 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:[email protected]] > Sent: Friday, January 07, 2011 2:21 PM > To: fredx21 > Cc: [email protected] > Subject: Re: [webkit-dev] How can I call a javascript function from the > hosting application > > On Fri, Jan 7, 2011 at 14:35, fredx21 <[email protected]> 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 >> [email protected] >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >> >> > > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

