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();
posted @ 2011-01-05 15:32  qiang.xu  阅读(504)  评论(0编辑  收藏  举报