Jump to content

Jquery Help...


haku87

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.