Re: [webkit-dev] How to execute a JavaScript containing site with JSCore?

2009-06-26 Thread Sebastian Linke
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 anch

[webkit-dev] Getting global object from a webkit context throws a warning

2009-06-25 Thread Sebastian Linke
Hi, I'm currently learning how a JavaScript context is structured. Therefore I just load a site in a WebKit session and try to access the property "document.forms" using `JSObjectGetProperty()`: http://paste.pocoo.org/show/125018/ But before I go on, I would like to know why I get this warnings:

Re: [webkit-dev] How to execute a JavaScript containing site with JSCore?

2009-06-13 Thread Sebastian Linke
g. to perform calls like `document.forms`. Sebastian > Hi Sebastian. > > JSEvaluateScript can only evaluate JavaScript; it can't parse HTML. > > Cheers, > Geoff > > On Jun 10, 2009, at 10:05 PM, Sebastian Linke wrote: > > > Hi, > > > based on my exp

[webkit-dev] How to execute a JavaScript containing site with JSCore?

2009-06-10 Thread Sebastian Linke
Hi, based on my experiences when I ran some javascript code on a webkit context, I was trying to do the same with "normal" html code. It may sound a bit naive, but I simply passed the whole content of a website to `JSEvaluateScript()`, using `JSGlobalContextCreate(NULL)` as the context. This

[webkit-dev] Looking for a counterpart of webkit_get_default_session()

2009-06-10 Thread Sebastian Linke
Hi there, a few weeks ago I noticed that the WebKitGTK+ 1.1.1 release comes up with a nice feature: webkit_get_default_session() In the last days I was playing around with the underlying SoupSession and now I would like to know if you are going to give it some kind of counterpart. Or is there