[webkit-qt] 答复: how to get information when all the ajax requests are responsed

Chen Zhixiang chenzx at cn.fujitsu.com
Sun Nov 3 21:37:53 PST 2013


The Ajax requests may be after the loadFinished() event.

You can NOT reliably check this.

 

Consider the extreme example: //using jQuery

 

$(document).ready( function(){

setTimeout(function(){ doAjaxLoad();}, 500000);

});

 

But normally, you may subclass QNetworkRequest, to watch: if there is no
more active/pending requests, then page load is done!

 

发件人: webkit-qt-bounces at lists.webkit.org
[mailto:webkit-qt-bounces at lists.webkit.org] 代表 Frank
发送时间: 2013年11月4日 7:39
收件人: webkit-qt at lists.webkit.org
主题: [webkit-qt] how to get information when all the ajax requests are
responsed

 

Hi all: 

I have a question. After a web page has been loaded, the webpage is dragged
to the end of the page to invoke serials of ajax request. The Ajax requests
may change the content of the page. How can I be informed when all the
requests have been responsed?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20131104/7ab757aa/attachment.html>


More information about the webkit-qt mailing list