javascript - Simulate loading effect in Chrome and IE -
i'm doing process via ajax after clicking button
$(document).ready(function(){ $("#mybutton").click(function(){ //set loading text $(this).html("loading..."); //do ajax call $.ajax(.... //finaly reset button text. $(this).html("save changes"); }); });
this working in firefox but, when test on chrome , ie not work. can me?
i tried launch modal loading message , close it, never appears, in firefox.
you should add button reset text in callbacks.
$.ajax({ url: ... success: function (result) { //finaly reset button text. $(this).html("save changes"); }, error: function (x, t, m) { //finaly reset button text. $(this).html("save changes"); } });
Comments
Post a Comment