Look into the jquery blockui plugin
On Monday, June 4, 2012, ShaunR wrote:
> Anybody have any good solutions for disabling a modal so that the user
> cannot click any other buttons or even the close buttons when an ajax
> request is being processed? I already set the button('loading') on
> the triggering button but the user can still press escape and click
> the close buttons to dismiss the dialog. Problem is that the request
> could still be loading...
>
> Anybody have a solution to this, would be cool if the modal had a
> option for disabling it that could be triggered right before ajax() or
> somthing
>