E
E
Extramezz2015-10-26 06:49:21
JavaScript
Extramezz, 2015-10-26 06:49:21

How to assign onprogress in ajaxSetup?

I want to set a default onprogress handler for all future $.ajax requests. How to do it? After all , $.ajaxSetup does not have a progress parameter , only the deffered object that returns the $.ajax method has it , but then you have to set the handler for each request separately.

$.ajax(...).progress(function);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-10-26
@Extramezz

www.dave-bond.com/blog/2010/01/jquery-ajax-progress...
https://github.com/englercj/jquery-ajax-progress

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question