CopyPastor

Detecting plagiarism made easy.

Score: 0.8484745471203914; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-04-22
by Arpit Vasani

Original Post

Original - Posted on 2013-08-15
by kernel



            
Present in both answers; Present only in the new answer; Present only in the old answer;

What you need is the .ajaxSend() listener. It will populate a global event listener for every Ajax call - like your getJSON.
$(document).ajaxSend(function () { $.mobile.loading("show") }).ajaxStop(function () { $.mobile.loading("hide") });
What you need is the `.ajaxSend()` listener. It will populate a global event listener for every Ajax call - like your getJSON. Reference here http://api.jquery.com/ajaxSend/
$(document).ajaxSend(function () { showSpinner(); }).ajaxStop(function () { hideSpinner(); });

        
Present in both answers; Present only in the new answer; Present only in the old answer;