[webkit-help] webkit evaluateJavascript

Adam Roben aroben at apple.com
Fri May 13 05:52:12 PDT 2011


On May 12, 2011, at 8:48 PM, Yanke (Yon) Hu wrote:

> In QtWebKit, there is a method  QWebFrame->evaluateJavaScript() ,which can execute javascript.  I think the function should be provided by WebKit. But I just cannot find the corresponding API in WebKit...

Each port has its own WebKit API. QtWebKit has a Qt-style API, WebKit on Mac OS X has a Cocoa API, WebKit on Windows has a COM API, etc. So it's a little strange to be talking about a non-port-specific WebKit API (though we are working toward something like that for WebKit2).

If you're just interested in seeing what WebKit internals are used to implement the evaluateJavaScript API, you can look here: <http://trac.webkit.org/browser/trunk/Source/WebKit/qt/Api/qwebframe.cpp#L1534>

-Adam




More information about the webkit-help mailing list