EasyUI Forum
October 10, 2024, 10:19:27 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: how to show progress while execute codes?  (Read 6711 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« on: November 28, 2017, 08:38:41 PM »

how to make a $.messnger.progress show while execute a group of codes?

i try it, but $.messenger.progress show after all codes execute
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 29, 2017, 05:02:12 PM »

You can't block a message dialog since it works in async mode.
Logged
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« Reply #2 on: November 29, 2017, 08:31:20 PM »

so, it cann't be make as sync mode, can it?
or can i insert a function in message.progress? whould you give me example using $.messeger.progress?
Logged
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« Reply #3 on: November 30, 2017, 12:37:20 AM »

i tried to do this :

$.messager.progress({
     title:'Proses',
     msg:'Searching...'
});
settimeout(function() {
     //codes while messager showing
     //........
     //........
    $.messager.progress('close');
}, 1000);


Is it true either logic?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: November 30, 2017, 09:05:36 AM »

The progress message dialog will always display on screen until you call the 'close' method to close it.
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!