[webkit-qt] None-visible QWebFrame javascript exection
Henrik Hofmeister
henrik at newdawn.dk
Tue Feb 16 02:03:09 PST 2010
Sorry for the late repost..
It turned out that you're right... it was a js error that - i had failed to
initialize a ressource from a static library - resulting in a lot of
expected javascript (mootools) missing when loading the no-gui client.
Now i'm trying to figure out how to catch and show js errors without the
inspector (which is not available in the no-gui) ? Im thinking of simply
making a try/catch around every js evaluation and then calling a C++ method
with the exception... but could be nice to hook directly into webkit.
Thanks for you help... Maybe someone else will realize the simplicity of the
problem earlier when reading this post... :)
On 12 February 2010 15:46, Ariya Hidayat <ariya.hidayat at gmail.com> wrote:
> > For some reason this does not work - i AM able to load the page , and
> also
> > able to render the frame via QPainter to QImage etc... but when calling
> > QWebFrame::evaluateJavaScript() nothing happens...
>
> Do you have a proper event loop?
>
> Can't you use your debugger to see where it stops?
>
> Maybe use Web Inspector to execute a JS code and see how it goes there?
>
>
> --
> Ariya Hidayat
> http://www.linkedin.com/in/ariyahidayat
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100216/24eb8b9a/attachment.html>
More information about the webkit-qt
mailing list