-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I've been looking at the client side reference and the documentation, but couldn't quite figure out and pinpoint where exactly and how ZK sends AJAX request to the server. Does anyone know how is this achieved?
I was debugging a little zk.wpd Javascript source, but couldn't locate the AJAX code. Does ZK use jQuery, or does it have its own custom AJAX module?
Thanks.
You can find all the client-side AJAX stuff in au.js (I'm pretty sure "au" means "Ajax Update"). ZK doesn't use JQuery-provided AJAX for normal requests, but accesses the XHR object directly.
Thanks gekkio,
and yes, "AU" is probably AJAX update... but where is that au.js file located? When I turn on Chrome's dev.tools, the only thing I see loaded are files starting with "z" (like zul.tab.wpd, aul.box.wpd, zk.wpd, etc). I found out that zk.wpd contains some widgets definitions (like Button) and I managed to locate 'onClick' event handler, but didn't get much form there, in the terms of locating the AJAX request... but thanks anyway
ZK concatenates at runtime most individual JS files into packages (the WPD files), so at runtime the code probably resides in zk.wpd. The original au.js file can be found in ZK source code.
Asked: 2012-11-05 11:19:23 +0800
Seen: 119 times
Last updated: Nov 05 '12