[webkit-dev] How to execute a JavaScript containing site with JSCore?
Sebastian Linke
Seb_Linke at web.de
Fri Jun 26 06:58:11 PDT 2009
Hi,
I used your hint to make a more or less useful code example to access the
first link of WebView page (here: Google) via the JavaScriptCore API:
http://www.nabble.com/file/p24220784/firstlink.c firstlink.c
My question is now: How has WebKit made all the link entries? Did it parse
each anchor-element from the DOM-tree and made the corresponding
JSProperties or is this achieved in another way?
Cheers,
Sebastian
Geoffrey Garen wrote:
>
>> Is there a straigthforwarded way to collect all the relationships
>> between the
>> site's object and to get a js-context of it?
>>
>> What I want in the end is to get access on the `document`-element,
>> e.g. to
>> perform calls like `document.forms`.
>
> If you have a JSContextRef that corresponds to a WebKit frame, you can
> get its global object using JSContextGetGlobalObject(), and get the
> global object's document using JSObjectGetProperty().
>
> Geoff
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
--
View this message in context: http://www.nabble.com/How-to-execute-a-JavaScript-containing-site-with-JSCore--tp23975370p24220784.html
Sent from the Webkit mailing list archive at Nabble.com.
More information about the webkit-dev
mailing list