Created
March 3, 2010 19:43
-
-
Save donnfelker/320931 to your computer and use it in GitHub Desktop.
This file contains 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
var loadingUx = '<img src="<%=Url.Content("~/Images/ajax-loader.gif")%>" /> Loading'; | |
$("#my-button-id").click(function () { | |
// Add loading gif to let user know some kind of party is going on while they wait | |
$(this).hide(); | |
$(this).parent().append(loadingUx); // Button is in a div of its own | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment