-
FEATURED COMPONENTS
First time here? Check out the FAQ!
just like
jQuery $.ajax({
async:false;//use Synchronous Ajax request
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(msg){
condition=msg;
}
});
when sending a request to server ,the webbrowser will be locked, and user can operate nothing.
There is, in the zAu object (see link), the ability to define an ajaxSettings map before issuing a send. Unfortunately, it is horribly documented. Well, actually, it's not documented at all as to what is valid in this map. But, since ZK heavily uses its own version of jQuery, I would think it well worth the effort to set ajaxSettings to include {async: false} and then send your request to the server via one of the sendXxx methods.
I'm betting that will do the trick.
Ron
Asked: 2013-04-26 08:39:55 +0800
Seen: 21 times
Last updated: May 01 '13
composite component help [closed]
EL in a forEach @command not working?
Different template for each grid row
Cardlayout animation is broken
Grid RowRender slow using 6.5.1 and sizable=true
setVisible(false), component will load or not
Decimalbox and doublebox value rounded on iPad
history management with page status