Home  >  Article  >  Web Front-end  >  Example code to implement waitMsg waiting prompt effect

Example code to implement waitMsg waiting prompt effect

零下一度
零下一度Original
2017-06-26 10:14:462124browse
1. fp.form.submit has the waitMsg attribute to set the waiting effect, as follows. But for Ext.Ajax.request waitMsg does not work.
# FP.Form.Submit ({
# Url: ' ,
##            waitTitle:
"[Gender]Modify",
                                                                                                                       
waitMsg: 'Submitting data, please wait...',
SUCCESS:
FUNCTION ## (Form, Action) {## ext. MessageBox.alert(
'Prompt message'
,action.result.msg);                                                                                              #                                                                                                                                                                                                                       ​ alert(
'Prompt message',
"The updated gender is wrong!");                                                                                                                                                                                                 Effect
Ext.MessageBox.confirm(
'Message', 'Are you sure you want to change the gender?', function
(btn) {
              
if
(btn ==
'yes'
){
## Var # This .LoadMask(Ext.getBody(), { ##                        msg: 'Submitting application, please wait!'
##                      ); Ext.Ajax.request({##                                                                                                                                                      . {
##                                                                                                  Success:
function
##(response,option) {                                                #var
res = Ext.decode(response.responseText);
                                                                  
                                                                                 Ext.MessageBox.alert('Prompt message'
, res.msg);
                                                                                                                                       myMask.hide();##                                            Hs.util.Msg('Prompt message'
, res.msg);
                                                                                                                                              Failure:
function(form, action) {
                                                                                                                            
##'Prompt message', response.msg);
                                                                                          
##                                                                                                                        

The above is the detailed content of Example code to implement waitMsg waiting prompt effect. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn