javascript - Get all xhr request -


I am trying to get all xhr position 200 and when their information is complete Is it possible to get them together in some way or when I send them, there is a reference for each of them?

You can use jQuery,

  $ (document) ) .jaxComplete (function (event, xhr, settings) {if (xhr.status === 200) {// rest handler}});   

This will ensure that all your AJAX responses will affect this method when they are completed, additional checks will be required for response status.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -