Question

So I'm trying to do a page with infinite scroll functionality. What I've got works great in all browsers/phones, EXCEPT for IE on a Windows phone.

There are 2 problems... the first is that the function isn't called on page load. I'm using:

$(document).ready (
    GetRecords()
);

The next issue is that I don't get anything from the AJAX:

function GetRecords() {
    $.ajax({
        url: "loadmore.php?from="+intNumDisplayed+"&get=20",
        success: function(strResponse) {
            if (strResponse.length>0) {
                $("#forumtable").append(strResponse);
            }
        }
    });
}

I can see, using alerts in different places, that the GetRecords function is being called, but I never get any results.

As ever, thanks for your help!

Was it helpful?

Solution

Note to self - always make sure you have the latest jQuery!

I was using 1.7.2 - when I updated everything worked...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top