jquery - Replace the current page with HTML from AJAX call -
please vote close question. using partial view , things work perfectly!
i make successful post. understand result here:
$(document).ready(function() { $('.pagination a').live('click', function() { $.post(this.href, $('form').first().serialize(), function(result) { }); return false; }); });
...corresponds response body. can i, , know sounds stupid, replace current page html?
i not sure if missing someting, should able place in callback:
$(window).html(result);
Comments
Post a Comment