function PerformCalculationWithImageProgress() { $("imgProgress").show(); $.get("Default.aspx", function(data, textStatus) { $("imgProgress").hide(); alert(data); }); }
<input type="button" name="btnDoRequest" value="Perform calculation" onclick="PerformCalculationWithImageProgress();" /> <img src="loading.gif" style="display: none;" id="imgProgress" alt="" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)