EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: pacific202 on October 08, 2011, 07:01:01 AM



Title: How to call "Processing" overlay?
Post by: pacific202 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?


Title: Re: How to call "Processing" overlay?
Post by: stworthy 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.


Title: Re: How to call "Processing" overlay?
Post by: pacific202 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.


Title: Re: How to call "Processing" overlay?
Post by: mzeddd 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?