How to prevent alert window from popping up on a Zen page
Hi!
Sometimes when I have Zen page in a browser (e.g. Management Portal page) and when my Internet connection interrupts, I see the alert window on the page, something like this screenshot:
Is there any setting for the CSP web app to prevent this alerts from popping up?
Comments
Probably not looking at the underlying code.
I would say its being raised by cspxmlhttp.js when it gets a non 200 status code.
If there was a sever side option then we would probably see some kind of conditional around either of these two functions...
if(req.status != 200) {
var errText='Unexpected status code, unable to process HyperEvent: ' + req.statusText + ' (' + req.status + ')';
var err = new cspHyperEventError(req.status,errText);
return cspHyperEventErrorHandler(err);
}
...
}
{
if (typeof cspRunServerMethodError == 'function') return cspRunServerMethodError(error.text,error);
alert(error.text);
return null;
}
That looks like a very good enhancement request for CSP.
Thanks, Sean!