I created a plugin to display a busy indicator in DOM elements like body or divs, but im having a problem with the situation bellow
$("body").BusyIndicator(true,"Please wait")
validateAndSubmitForm();
$("body").BusyIndicator(true,"Saving")
The problem is the first message "Please wait" isn't shown, the function validateAndSubmitForm seems to block the browser, and when it is unlocked, show directly the message "Saving"
Someone knows how can i ensure that the first message really are displayed before to execute the function validateAndSubmitForm ?