Ajax Object - 12030 Loop Fix?
This is the real bad practice.


The Ajax is Asynchronous, you never know how the response will back.
Javascript is the single thread language, so that means in one time period just can run one function. in your repeatUseAjax function, you try to loop send ajax. the result will be you will send 5 times ajax call every time when the ajax response failure.And you will never know when the response suceess. what about first failure other success? what about always failure?loop forever?