Checking connectivity before making an Ajax callback

Uploaded on Mar 30, 2021 / 0 views / 8 impressions / 0 comments


More from this user


If the user makes an Ajax callback and there is no internet connection, the Ajax failed event will fire after the Ajax callback times out. It can take quite a few seconds before the Ajax callback times out. It would be preferable to let the user know that Ajax callbacks are not possible before they try to make a callback. Also, in disconnected mobile applications, you might want to prevent the user from tying to synchronize data if the connection is poor.

In this video we show how this can be done.

Download component:


  • No tags