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();

相关文章:

  • 2021-05-24
  • 2021-07-11
  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-12-13
相关资源
相似解决方案