I give you a plus one for this. The way I use it, is I just have a
'onclick="javascript:$.blockUI({ backgroundColor: '#f00', color: '#fff'});"
' and notice that it does not 'return false' so that the click gets handled
by the form handler.
On Monday, December 31, 2012 8:36:15 AM UTC-7, Anthony wrote:
>
> I use this: http://jquery.malsup.com/block/#overview. If it's an Ajax
> form, you can use .ajaxStart() and .ajaxStop() to start and stop the UI
> blocking.
>
> Anthony
>
> On Monday, December 31, 2012 9:30:29 AM UTC-5, Pradeeshnarayan wrote:
>>
>> In my Web2py application I have a form
>>
>> form = FORM(
>> INPUT(_type='text')
>> ...
>> ...
>> ,_ajax=True
>> )
>>
>> if form.accepts(request,session):
>> do something
>> # This action will take some time to complete, So I need a waiting
>> message in users view, until this action completes
>>
>> I would greately appreciate any suggestion.
>>
>>
>>
--