Created
October 13, 2011 20:26
-
-
Save airstrike/1285409 to your computer and use it in GitHub Desktop.
ajax call breaks back button, shows json instead of .html page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
type: 'GET', | |
url: document.location, | |
data: {}, | |
contentType: "application/json; charset=utf-8", | |
dataType: "json", | |
success: function(fetched) { | |
$.each($('body#grid ul.messagelist li'), function(i, e) { | |
$(e).hide().fadeOut(); | |
}); | |
$('span.loading').remove(); | |
initMileto(fetched); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment