Revision history [back]

click to hide/show revision 1
initial version

asked 2013-04-17 16:01:55 +0800

ansancle gravatar image ansancle

Catch Server 503 Error

Does anyone know how to catch the server 503 error thrown by the browser if the server has gone down? In my case, if we are sitting on a page and the server is restarted, the next time the user presses anything it will pop the "503: Service Temporarily Unavailable" dialog, then when they hit ok the page will reload and all is well. I want to do that reload under the covers so the dialog never gets popped.

I haven't found anything on the web and was wondering if anyone knows a ZK way or any other way to do this. Thanks! Andy

click to hide/show revision 2
Catch a stale page after the server has gone down and come back up

Catch Server 503 Error

Does anyone know how to catch the server 503 error thrown by the browser if the server has gone down? down?

Or another way to put this is catch a stale page, the server has cycled and is back up but our page is now stale.

In my case, if we are sitting on a page and the server is restarted, the next time the user presses anything it will pop the "503: Service Temporarily Unavailable" dialog, then when they hit ok the page will reload and all is well. I want to do that reload under the covers so the dialog never gets popped.

I haven't found anything on the web and was wondering if anyone knows a ZK way or any other way to do this. Thanks! Andy

Catch Server 503 ErrorError - Or Catch Stale Page

Does anyone know how to catch the server 503 error thrown by the browser if the server has gone down?

Or another way to put this is catch a stale page, the server has cycled and is back up but our page is now stale.

In my case, if we are sitting on a page and the server is restarted, the next time the user presses anything it will pop the "503: Service Temporarily Unavailable" dialog, then when they hit ok the page will reload and all is well. I want to do that reload under the covers so the dialog never gets popped.

I haven't found anything on the web and was wondering if anyone knows a ZK way or any other way to do this. Thanks! Andy

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More