[webkit-qt] JavaScript Timing Events
Zhou Peng
zhoupeng19 at 126.com
Tue May 24 02:49:57 PDT 2011
Hi,all!
I’m using qt webkit to get page’s content. In my program, I catch two signals, QWebFrame’s loadFinished and initialLayoutCompleted, when both signal is received, I’m output the page’s content. But it’s can’t process this page(I need to get google’s content):
<html>
<head>
<title>test</title>
</head>
<body>
<script type="text/javascript">
setTimeout('window.document.location.href="http://www.google.com";',2000
</script>
</body>
</html>
This page redirect to www.google.com after 2 sec, so , when I get loadFinished and initialLayoutCompleted signal, I get nothing output.
So, I want to execute the javascript timing events(redirect to google) immediately ,not to wait 2 sec. Is there any way to do this?
Apologize for my poor english!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110524/5dd782de/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ? ?.vcf
Type: text/x-vcard
Size: 587 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20110524/5dd782de/attachment-0001.vcf>
More information about the webkit-qt
mailing list