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();
如果您觉得不错,欢迎扫码支持下。
作者:许强1. 本博客中的文章均是个人在学习和项目开发中总结。其中难免存在不足之处 ,欢迎留言指正。 2. 本文版权归作者和博客园共有,转载时,请保留本文链接。