Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
PHP
function PerformCalculationWithImageProgress()
{
        $("imgProgress").show();
        $.get("Default.aspx", function(data, textStatus)
        {
                $("imgProgress").hide();
                alert(data);
        });
}

XML
<input type="button" name="btnDoRequest" value="Perform calculation" onclick="PerformCalculationWithImageProgress();" />
<img src="loading.gif" style="display: none;" id="imgProgress" alt="" />

the above code works only for first time button click and then it hides the loading bar..but i want it to show even if i click multiple time...
Posted
Updated 27-Jul-11 23:53pm
v2

1 solution

Maybe you can delete the $("imgProgress").hide(); and get your image displayed all time. :confused: :confused:
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900