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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -