How to show waiting message on sync ajax call in browser ?
I tried code below, turned web server off but Saving message is not displayed.
After some time only error event from ajax call occurs, without any progress message.
How to show waiting message to user if sync ajax call is in progress ?
var myInfo = '<div class=ui-state-highlight ui-corner-all style=position: fixed;' +
'z-index: 10000; margin-top: 2%; margin-left: 2%>' +
' <br />' +
' <span class=ui-icon ui-icon-info style=float: left; margin-right: .3em;></span>' +
'<strong>Saving</strong> <br />' +
'<br /></div>'
$('#_info').html(myInfo);
$('#_info').show();
$.ajax( 'save',
{
async: false,
type: 'POST'
} );