-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Hi,
As described at http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Customization/Handle%20AU%20Request%20Resend, I tried to use my own implementation, but it does not have any effect.
In fact, I am facing with an Error that is not easily reproducable and I try to fix it there.
I also tried to overwrite some other methods like this:
zAu.ajaxSendNow = function (reqInf) {
console.log("------------------- ajaxSendNow");
zk.log("------------------- ajaxSendNow");
// then the same implementation as in zk.jar
}
but I have never seen the messages to apper.
I have found no istructions, how to put this JavaScript code. I have put it intu my menu.zul that is included in all of my pages:
<?xml version="1.0" encoding="ISO-8859-1"?>
<z:zk xmlns:z="http://www.zkoss.org/2005/zul" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd ">
<script defer="true"><![CDATA[
console.log("+++++++++++++++++++++++++++++" + zAu.startProcessing);
console.dir(zAu);
console.dir(zk);
zAu.startProcessing = function (timeout) {
console.log("1111111111111111111111111111111111");
zk.log(">>>>>>>>>>>>>>>>>>>>>>>> startProcessing");
zk.processing = true;
setTimeout(jq.isReady ? showprgb: showprgbInit, timeout > 0 ? timeout: 0);
}
]]></script>
<z:vlayout apply="bflexx.zk.menu.MenuController" style="border:normal;width:100%;">
...
Is that so correct?
By the way, console.log() works fine, zk.log doesn't, how to display this div?
My ZK Version is 6.5.4.
2 | No.2 Revision |
Hi,
As described at http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Customization/Handle%20AU%20Request%20Resend, I tried to use my own implementation, but it does not have any effect.
In fact, I am facing with an Error that is not easily reproducable and I try to fix it there.
I also there. So I tried to overwrite some other methods method that is called very often, like this:
zAu.ajaxSendNow = function (reqInf) {
console.log("------------------- ajaxSendNow");
zk.log("------------------- ajaxSendNow");
// then the same implementation as in zk.jar
}
but I have never seen the messages to apper. When I put these logging code directly into au.js in zk.jar, I can see the messages both in the browser console and the ZK's log-div on the page.
I have found no istructions, how to put this instructions, where to define the customized JavaScript code. I have put it intu into my menu.zul that is included in all of my pages:
<?xml version="1.0" encoding="ISO-8859-1"?>
<z:zk xmlns:z="http://www.zkoss.org/2005/zul" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd ">
<script defer="true"><![CDATA[
console.log("+++++++++++++++++++++++++++++" + zAu.startProcessing);
console.dir(zAu);
console.dir(zk);
zAu.startProcessing = function (timeout) {
console.log("1111111111111111111111111111111111");
zk.log(">>>>>>>>>>>>>>>>>>>>>>>> startProcessing");
zk.processing = true;
setTimeout(jq.isReady ? showprgb: showprgbInit, timeout > 0 ? timeout: 0);
}
]]></script>
<z:vlayout apply="bflexx.zk.menu.MenuController" style="border:normal;width:100%;">
...
Is that so correct?
By the way, console.log() works fine, zk.log doesn't, how to display this div?
My ZK Version is 6.5.4.
3 | No.3 Revision |
Hi,
As described at http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Customization/Handle%20AU%20Request%20Resend,http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/Customization/Handle%20AU%20Request%20Resend , I tried to use my own implementation, but it does not have any effect.
In fact, I am facing with an Error that is not easily reproducable and I try to fix it there. So I tried to overwrite some other method that is called very often, like this:
zAu.ajaxSendNow = function (reqInf) {
console.log("------------------- ajaxSendNow");
zk.log("------------------- ajaxSendNow");
// then the same implementation as in zk.jar
}
but I have never seen the messages to apper. When I put these logging code directly into au.js in zk.jar, I can see the messages both in the browser console and the ZK's log-div on the page.
I have found no instructions, where to define the customized JavaScript code. I have put it into my menu.zul that is included in all of my pages:
<?xml version="1.0" encoding="ISO-8859-1"?>
<z:zk xmlns:z="http://www.zkoss.org/2005/zul" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd ">
<script defer="true"><![CDATA[
console.log("+++++++++++++++++++++++++++++" + zAu.startProcessing);
console.dir(zAu);
console.dir(zk);
zAu.startProcessing = function (timeout) {
console.log("1111111111111111111111111111111111");
zk.log(">>>>>>>>>>>>>>>>>>>>>>>> startProcessing");
zk.processing = true;
setTimeout(jq.isReady ? showprgb: showprgbInit, timeout > 0 ? timeout: 0);
}
]]></script>
<z:vlayout apply="bflexx.zk.menu.MenuController" style="border:normal;width:100%;">
...
Is that so correct?correct? Why doesn't it work?
My ZK Version is 6.5.4.