[webkit-dev] Win32 App
Adam Roben
aroben at apple.com
Tue Sep 30 06:59:27 PDT 2008
On Sep 29, 2008, at 12:58 PM, Jason Hullinger wrote:
> (reply all this time)
>
> Well, it looks like stringByEvaluatingJavaScriptFromString is
> calling: JSC::JSValue* scriptExecutionResult = coreFrame->loader()-
> >executeScript(WebCore::String(script), true); The problem, I
> believe, is that coreFrame (an IWebFrame) is not set to a value
> because I'm not using an actual frame, or view of any kind. Does
> anyone know if there is a similar way as a Windows app to do the
> same as in Cocoa?
I think you may need to call IWebView::initWithFrame before
stringByEvaluatingJavaScriptFromString will work. I'm surprised that
isn't required on OS X as well.
-Adam
> On Mon, Sep 29, 2008 at 1:12 AM, Ariya Hidayat <ariya.hidayat at trolltech.com
> > wrote:
>
> > In Cocoa I have made a command line application that init's a
> WebView, then
> > calls, stringByEvaluatingJavaScriptFromString, however, I'm trying
> to get
> > this to work in Windows. I've compiled WebKit and added a new
> Win32 command
> > line project, however, I'm always getting back "null" when calling
> > stringByEvaluatingJavaScriptFromString. Below is the source, and
> I've tried
> > a variety of different things to eval ("1 + 1", "var foo = 1",
> etc.), and
> > again, it's always null.
>
> Can't you use the debugger and single-step the function? Perhaps it
> returns
> immediately due to some error or something like that.
>
>
>
> --
> Ariya Hidayat (ariya.hidayat at trolltech.com)
> Software Engineer, Qt Software, Nokia
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.webkit.org/pipermail/webkit-dev/attachments/20080930/f9c1cb52/attachment.html
More information about the webkit-dev
mailing list