EasyUI Forum
October 17, 2025, 10:20:05 AM *
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 call "Processing" overlay?  (Read 20193 times)
pacific202
Newbie
*
Posts: 35


View Profile
« on: October 08, 2011, 07:01:01 AM »

I'm making a custom AJAX call based on some form and grid data and want to lock out the UI and display the "Processing, Please Wait" message while I await the response.

Is there a way to call then dismiss this feature programatically?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 08, 2011, 10:47:12 PM »

Call the below code to show the block message window:
$.messager.progress({
  title:'Your Title',
  msg:'Processing, Please Wait'
});

To close this block window, call below code:
$.messager.progress('close');

For more information please refer to http://www.jeasyui.com/documentation/messager.php.
Logged
pacific202
Newbie
*
Posts: 35


View Profile
« Reply #2 on: October 09, 2011, 01:01:25 PM »

Thanks!

I don't want to show the users the progress bar as I am not sure how long the request will take.  It is for a global application, so users in the same country as the server will get the ajax response very quickly (less than a second), but others may get the response in 5+ seconds.  It's only one ajax call, so I can't break it down into a % complete either.
Logged
mzeddd
Full Member
***
Posts: 223



View Profile
« Reply #3 on: August 20, 2012, 03:43:17 AM »

Is there any way to get the same "progress bar" as we have during DataGrid or TreeGrid load/reload?
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!