Ajax Loader not working

Ajax Loader not working

I am new to JQuery Mobile Developer I want to show AJAX loader for each AJAX call in my CORDOVA single page application I have used $.mobile.loading('show') and $.mobile.loading('hide')  but is not working 
please guide 

Thanks in advance

Mitesh