Backbonejs, catch all the ajax call and add spinner when there is ajax call

0 votes
asked Mar 15, 2016 by SynMy (400 points)
I'm working on web project where I used backbone. js, now i want to handle all ajax call globally and add spinner whenever there is ajax call.

4 Answers

0 votes
answered Mar 27, 2016 by about (260 points)

The spinner just runs on the tab and nothing gets updated.
The function does not work at all.
The 'catch' statement is ignored and 'finally' is executed.

These are some links that can be helpful hopefully they will JavaScript - Fail To Catch Exception When Using Setinterval -
+1 vote
answered Apr 4, 2016 by Lbh4117 (210 points)

If javascript is enabled, the block will be revealed.
To clarify, it is the timers that fire sequentially.

For more details, check out
commented Apr 5, 2016 by sure_The (250 points)
Try Catch Or Another Way
commented Apr 6, 2016 by vf_3584_Don (380 points)
The team that I am currently working on solves this problem really nicely. Then solved by using
+1 vote
answered Apr 21, 2016 by Guv_that (510 points)
I tackled this issue and found some nasty bugs that people may find helpful
Well the situation was this with us long back and the solution was Delayed Content Loading Using the AJAX.NET Timer and ...
0 votes
answered Jun 2, 2016 by handshawCan (310 points)
Maybe JavaScript Promises: There and back again - HTML5 Rocks if you want an easy to use, very fast, macro based library
It does not happen if you are installing app with the same signature

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!