ExtJs Ext. Ajax. request implements waitMsg waiting for the prompt effect, extjswaitmsg

Source: Internet
Author: User

ExtJs Ext. Ajax. request implements waitMsg waiting for the prompt effect, extjswaitmsg

1. fp. form. submit has the waitMsg attribute to set the waiting effect, as shown below. However, waitMsg does not work for Ext. Ajax. request.

Fp. form. submit ({url: '', waitTitle:" [gender] modify ", waitMsg: 'submitting data. Please wait ...... ', success: function (form, action) {Ext. messageBox. alert ('prompt information', action. result. msg) ;}, failure: function (form, action) {Ext. messageBox. alert ('prompt information', "An error occurred while updating the gender! ");}});

Ii. Ext. Ajax. request implements the waitMsg wait prompt effect

Ext. MessageBox. confirm ('message', 'Are you sure you want to modify the gender? ', Function (btn) {if (btn = 'yes') {var myMask = new Ext. loadMask (Ext. getBody (), {msg: 'submitting application. Please wait! '}); MyMask. show (); Ext. ajax. request ({url: '', params: {sex: sex}, success: function (response, option) {var res = Ext. decode (response. responseText); if (res. success) {myMask. hide (); Ext. messageBox. alert ('prompt information', res. msg);} else {myMask. hide (); Hs. util. msg ('prompt information', res. msg) ;}, failure: function (form, action) {myMask. hide (); Hs. util. msg ('prompt information', response. msg );}});}});

The above is the ExtJs Ext. ajax. request to implement the waitMsg waiting prompt effect, hope to help you, if you have any questions, please leave a message, xiaobian will reply to you in a timely manner. Thank you very much for your support for the help House website!

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.