I\'m making a AJAX request with jquery like:
$.get(\'/Stuff.php\', function (data) { $(\'#own\').html(data); });
while this data is loa
use the ajaxSetup
$.ajaxSetup({ beforeSend:function(xmlHttpRequest){ //show the loading div here }, complete:function(){ //remove the div here } });
now make the ajax call
$.get('/Stuff.php', function (data) { $('#own').html(data); });