I have developed an application that heavily utilizes ajax, and I am looking to implement the following functionality: I would like to have a button with both text and an image. When this button is clicked, it should be disabled, and instead of the original image, an ajax loading element will display inside the button. Once the ajax loading is finished, the original image on the button should return.
Do you know of any reliable resources or tutorials that can help me achieve this? Suggestions from fellow developers are also welcome!