I am working on a application which will work on computer as well as Ipad,Iphone,Tablets and Android phones. I have one requirement of Showing a loading... gif when user moves from one page to other because this will give user a info that page loading/unloading is in process.
So i Tried below mentioned code ///below code for showing GIF while DOM is not ready.
$(document).ready(function(){
$("#loading").hide();});
//below code for showing GIF when user clicks on some button to do some Server Interaction.
$(window).bind('beforeunload',function(){
$("#loading").show();});
where #loading is id of a div which contains my GIF Code. Now this is working greatly on PC browsers but NOT on Ipad,Iphone and android phones. I am Not able to figure out why.
<div id="loading">
<img id="loading-image" src="/img/loading.gif" alt="Loading..." /></div>
This div is for loading the GIF.