Wait Message in ajax request
Hi,
How can i add wait message in ajax request.
I used the waitMsg config option , but is not showing the wait message while submitting the data.
How can i add the wait message while submitting the data using the Ext.Ajx.request
Please help me
this is my code
Code:
Ext.Ajax.request({
url : 'submit.htm',
waitMsg : 'Processing your request',
params : {
emailId : 'abc@cde.com'
},
success : respFunc,
failure : respFunc
});
respFunc = function(response){
var resText = Ext.decode(response.responseText);
alert("response: " + resText );
}
You could use:
Code:
var box = Ext.MessageBox.wait('Please wait while I do something or other', 'Performing Actions');
just before your request, then after you receive a response (success or otherwise) hide the wait box:
Code:
box.hide();

浙公网安备 33010602011771号