Link to home
Start Free TrialLog in
Avatar of Moti Mashiah
Moti MashiahFlag for Canada

asked on

jquery progress bar

Hi Guys,

I have asp.net mvc application and I wrote some code to run progress bar when any of my ajax method running.

My code:
$(document).ajaxStart(function () {
        $("#Waitbar").html("<img src='../Img/wait3.gif' align='absmiddle'>");
    }).ajaxStop(function () {
        $("#Waitbar").html("");
    }).ajaxSuccess(function () {
    });

<div class="text-center" id="Waitbar">

</div>

Open in new window


issue:
when the progress bar running its still allow to user to click on buttons textboxes ETC...so my question is how I kind of prevent from user to do anything in a while the progress bar running.


Thanks,
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moti Mashiah

ASKER

I worked with Julian idea, but also Guy gave some good example so I can work with this plug in in the other circumstances.

Thank you guys.