framework7

Open full view…

Handle default ajax call error and success events

bimalfernando
Sat, 24 Jun 2017 07:38:38 GMT

Hi, Some times the default ajax calls may fail due to various reasons. When this happens the page won't load but no errors were raised. Is there a way to handle default F7 ajax error and success events? For an example, if the ajax call fails due to session timeout then I should be able to direct to login page. I am talking about below type calls. <a href="about.html">Go to About page</a> When we click on this link, Framework7 will send Ajax request to about.html, parse it, insert to DOM and run animated transition to this new page. Thanks, Bimal