Quantcast
Channel: JavaScript: Add delay to a jquery ajax retry - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by David for JavaScript: Add delay to a jquery ajax retry

The context of this has changed by the time that retry() function executes, and is no longer the AJAX info. You should, however, be able to wrap it in a closure by using a variable: var self = this;...

View Article


JavaScript: Add delay to a jquery ajax retry

I've got code in the following structure. The intent is to send an Ajax request, and to retry it some number of times with a delay between each try: $.ajax({ type: 'GET', url: 'https://example.com',...

View Article

Browsing latest articles
Browse All 2 View Live