Wait message in Ajax request

Source: Internet
Author: User

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 cocould use:

Code:
VaR box = ext. MessageBox. Wait ('Please wait while I do something or other ', 'fill Ming actions ');

Just before your request, then after you receive a response (success or otherwise) Hide the wait box:

Code:
 box. hide (); 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.