-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Does is possible to lock screen using ONLY JS (i mean not via Clients.showBusy etc..). I need to lock screen immediately.
You can just show / hide a gif, but you can also embed that to ajaxSetup, so it's called on every ajax request.
$.ajaxSetup({
beforeSend:function(){
// show gif here, eg:
$("#loading").show();
},
complete:function(){
// hide gif here, eg:
$("#loading").hide();
}
});
One note is that if you want to do an specific ajax request without having the loading spinner, you can do it like this:
$.ajax({
global: false,
// stuff
});
That way the previous $.ajaxSetup we did will not affect the request with global: false.
More details available at: http://api.jquery.com/jQuery.ajaxSetup
Asked: 2013-05-28 08:57:53 +0800
Seen: 14 times
Last updated: May 28 '13
use Hibernate standard methods to manage Sessions ??
ZK tag raw text appended with object value
JSP and variable value from zscript
getting error while running spreadsheet jsp
How to include zul file in jsp file
jsp contents are not getting rendered redirected from zul page.
Clients.showBusy() does not show in jsp that include zul
Do you want for each ajax request the page show some busy mask?
sjoshi ( 2013-05-28 10:37:18 +0800 )edit