You need to sign in to do that
Don't have an account?

Disabling all user input during AJAX action
I know I can use an actionStatus to disable a specific button or input field during an action/rerender. However, I would like to disable all user inputs (check boxes, date inputs, etc.) during a rerender that is triggered by just one input. Basically, I'd like an actionStatus that all of the inputs are listening on so that they all disable themselves until the the action is complete.
This should do the trick.
All Answers
This should do the trick.
Thanks! This approach worked for me and I even made jQuery to do the disabling work:
Yup, jQuery is a great option for this. I would normally use it but didn't want to over complicate the solution.
How about for an inputField onchange event? inputField doesn't have an oncomplete attribute, and actionsupport oncomplete doesn't seem to work - actionsupport appears to get overridden by the inputField onchange...?
<apex:inputField value="{!field__c}" onchange="disableInputs();">
<apex:actionSupport event="onchange" action="{!doAjax}" oncomplete="enableInputs();"/>
</apex:inputField>
I'm guessing there's a better way to do this with only one onchange function that calls both disableInputs and doAjax?