haku87 Posted February 24, 2008 Share Posted February 24, 2008 I used $().load to load a page $('#main').load('./quizsystem/management.php?page='+data); $('#main').ajaxSend(function(){ $('#loading').show(); }); $('#main').ajaxSuccess(function(){ $('#loading').hide(); }); i wished to get the loading time... i try using getTime() but failed... $('#main').load('./quizsystem/management.php?page='+data); $('#main').ajaxSend(function(){ x=d.getTime(); $('#loading').show(); }); $('#main').ajaxSuccess(function(){ y=d.getTime(); alert(y-x); $('#loading').hide(); }); it alert Nah.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.