Closed piu closed 9 years ago
Hi I have made some Changes in Spin.js and Typescript file for same in order to fix it in my Application. Introduced new Parameters: 1) stopTimer?: number; 2) autoStop?: boolean;
And handled the same in Spin.js you can find changes in my repository (https://github.com/piu/SpinJSWithAutoStop )
If you use jQuery.ajax() provide a timeout
and stop the spinner in the error callback. See http://stackoverflow.com/questions/5225597/set-timeout-for-ajax-jquery
I have to agree - I don't think stopping the spinner after a certain amount of time is a common requirement.
On Saturday, 20 December 2014, Felix Gnass notifications@github.com wrote:
If you use jQuery.ajax() provide a timeout and stop the spinner in the error callback. See http://stackoverflow.com/questions/5225597/set-timeout-for-ajax-jquery
— Reply to this email directly or view it on GitHub https://github.com/fgnass/spin.js/issues/268#issuecomment-67751670.
Yes I agree, its pretty convenient to do so if using jquery.ajax() but in my case we are using Signalr.
Hello there,
I an using spin.js in my application and I need to stop spinner automatically if server response is late. For eg: On starting of request I start the Spinner and after 10 sec or so it should get stop automatically even if server response fails/ is slow.
Is there any way to acheive this in Spin.js?