EasyUI Forum
April 17, 2024, 09:29:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: $.messager.progress show/run simultaneously  (Read 6479 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 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.
Logged
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« Reply #2 on: November 25, 2017, 10:13:28 PM »

well, can we make it async:false, just like ajax?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #3 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!