Display alert upon no connectivity during ajax calls

Login or register to post comments
2 replies [Last post]
User offline. Last seen 22 weeks 6 days ago. Offline
Joined: 05/15/2009

I have developed a JavaScript modification to QCubed.

This JS is basically to avoid frozen browser whenever there is no network when triggering any ajaxaction. It will display an alert window (div) in the position described in post.js: 171. Perhaps the function is similar to gmail or facebook when you have network problem.

qcodo.alertDisplay(250,20,"Network Connection Error\r\n. Please try again later. If it does not work, try to refresh the page.\r\nClick Ok button to close this message.", true, false);

How to use it:
Please rename it to .js and copy it to your assets/_core/js (QCubed 1.1).

The only drawback is that any AJAX error dump will not be displayed in some cases. It will display this alert instead.

Any comment is appreciated. Thanks.

User offline. Last seen 4 hours 5 min ago. Offline
Joined: 03/31/2008

Sounds very useful. Could you create a ticket for this as well, so that it's tracked as something we should add to core?

User offline. Last seen 22 weeks 6 days ago. Offline
Joined: 05/15/2009

I have added as a new ticket #259. Thanks.