This content has been marked as final.
Show 2 replies
-
1. Re: a4j:poll how to find HTTP response code?
thinksteep Jun 7, 2012 2:02 PM (in response to thinksteep)Hi Community, Any help on this? Thank you,
-
2. Re: a4j:poll how to find HTTP response code?
yyq2009 Jun 8, 2012 2:36 AM (in response to thinksteep)Hi, I don't know if following code can help you.
var serverLive = true;
if (typeof jsf !== 'undefined') {
jsf.ajax.addOnError(function(data){
if(data.responseCode==0){
serverLive = false;
}
});
jsf.ajax.addOnEvent(function(data){
if(data.status=="success"){
serverLive = true;
}
});
}
Good luck!