// JScript File $(document).ready(function () { $contentLoadTriggered = false; $("#mainDiv").scroll(function () { if ($("#mainDiv").scrollTop() >= ($("#wrapperDiv").height() - $("#mainDiv").height()) && $contentLoadTriggered == false) { $contentLoadTriggered = true; $.ajax( { type: "POST", url: "LoadOnScroll.aspx/GetDataFromServer", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", async: true, cache: false, success: function (msg) { $("#wrapperDiv").append(msg.d); $contentLoadTriggered = false; }, error: function (x, e) { alert("The call to the server side failed. " + x.responseText); } }); } }); });
$("#wrapperDiv").append(msg.d);
msg.d
ClientID
$('#' + '<%= wrapperDiv.ClientID %>').append(msg.d);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)