EasyUI Forum

General Category => General Discussion => Topic started by: iskandarkbr on November 25, 2017, 01:18:28 AM



Title: $.messager.progress show/run simultaneously
Post by: iskandarkbr on November 25, 2017, 01:18:28 AM
how to make $.messager.progress show simultan before the next line

$.messager.progress({
   title:'Proses',
   msg:'Searching...'
}).dialog('dialog').css('z-index', 9999999);


t.tree('update', {
   target: nodes[0].target,
   iconCls: 'icon-loading'
});

for(var i=0; i<nodes.length; i++){
   var node = nodes;
   $(node.target).removeClass('tree-node-search');
   $(node.target).hide();
}

"$.messager.progress" always shows after code for{...} 've executed, why?


Title: Re: $.messager.progress show/run simultaneously
Post by: jarry on November 25, 2017, 05:53:35 AM
All the message dialogs work in async mode. You can't wait the dialog to be closed before continuing to next statements.


Title: Re: $.messager.progress show/run simultaneously
Post by: iskandarkbr on November 25, 2017, 10:13:28 PM
well, can we make it async:false, just like ajax?


Title: Re: $.messager.progress show/run simultaneously
Post by: jarry on November 25, 2017, 10:52:13 PM
No, but you can define the 'onClose' event handler to continue to run your code after closing the message dialog.