0

I'm attempting to use load() with a selector

$(document).ready(function() {
    $('#Documents').load('../searchresults.aspx #listing', '', function() {
        if(status == 'error') {
            $(this).html('Error loading page');
        }
    });
});

The problem is that the ../searchresults.aspx page by itself first display "Loading..." then refreshes with the actual data within a few seconds.

So my div #Documents just display "Loading..."

How would I go about getting the #listing contents after the pages has completely finishes loading?

4

0 回答 0