tags:

views:

37

answers:

1

hi, i have a button on the page in asp.net mvc control.. when I click the button its taking some time to finish the work on my page.. mean while If user wants to do something on the page I should not allow the user to do soo.. So that I need to show the message please wait..

is this the good idea to use jquery ui blcok? or do I need to do in other way?

if so how to do this kind of behaviour?

thanks

+1  A: 

You can simply disable the form and all interact-able elements if you think using a blocking API (such as blockUI) is overkill, e.g.:

$("form").submit(function() {
    $(this).find(':input').attr("disabled", "disabled");
});
karim79