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!