-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I am getting popup when Ajax call fails with massage "Failed to send requests to server, The server is temporarily out of service.Would you like to try again?", I replaced popup with console log but after that I am still getting popup but its UI got changed. Please help me to get rid of this popup, I do not want to show this popup. My zk version is 6.5.4
I replace : zAu.confirmRetry = function (msgCode, msg2) { if (msgCode =='FAILEDTORESPONSE' && msg2.match('SyntaxError') !== null) { window.location = './landingPage.go'; return null; } else { var msg = msgzk[msgCode]; return jq.confirm((msg?msg:msgCode)+'\n'+msgzk.TRY_AGAIN+(msg2?'\n\n('+msg2+')':'')); } }
with
zAu.confirmRetry = function (msgCode, msg2) {
if (msgCode =='FAILEDTORESPONSE' && msg2.match('SyntaxError') !== null) {
window.location = './landingPage.go';
return null;
} else {
var msg = msgzk[msgCode];
return console.log((msg?msg:msgCode)+'\n'+msgzk.TRY_AGAIN+(msg2?'\n\n('+msg2+')':''));
}
};
Hello Danish,
In my opinion you should investigate why the error occurs and not try to suppress it.
Also you can configure the zk.xml as shown below:
https://www.zkoss.org/wiki/ZKConfigurationReference/zk.xml
Best Regards,
Darksu
Asked: 2016-07-13 13:03:47 +0800
Seen: 16 times
Last updated: Jul 13 '16
limit when implement zAu.ajaxErrorHandler
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate
Hi Darksu,
Thanks for your valuable replay, you are right that I should work on error reason but my requirement is to remove this popup massage.
Danish ( 2016-07-14 15:01:39 +0800 )editcould you please help me to clear some doubts, I found property "The auto-resend-timeout Element" which is default for 200 ms, If I increase to 4000 ms then will this popup can be put on hold for 4 second? how I can use this property?
Danish ( 2016-07-14 15:41:17 +0800 )editand I could not find the property to increase number of attempt to call server before showing popup massage, which property I should use to increase number of attempts?
Danish ( 2016-07-14 15:41:31 +0800 )edit