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.. Link to comment https://forums.phpfreaks.com/topic/92689-jquery-help/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.