I have a page operation that uses something like:
$(\'#thetable tbody\').replaceWith(newtbody);
in an ajax callback. Sometimes, if the user
Are u use aspx? if it's aspx:
$(document).ready(function () {
//------------ scroll-------------
$('body').scrollTop(document.getElementById('<%=hdScroll.ClientID%>').value);
$(window).scroll(function () {
$("#<%= hdScroll.ClientID %>").val($(window).scrollTop());
//alert(document.getElementById('<%=hdScroll.ClientID%>').value);
});
});