Written by

Senior Startups and Community Programs Manager at InterSystems Corporation
Question Evgeny Shvarov · Apr 11, 2017

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

Sean Connelly · Apr 11, 2017

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...

function cspProcessResponse(req) {
  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);
  }

...

}

function cspHyperEventErrorHandler(error)
{
  if (typeof cspRunServerMethodError == 'function'return cspRunServerMethodError(error.text,error);
  alert(error.text);
  return null;
}

0
Evgeny Shvarov  Apr 11, 2017 to Sean Connelly

That looks like a very good enhancement request for CSP.

Thanks, Sean!

0