Previously, I do that in the same tima as the search query, but it incredibly slow down query..
Then this is my code... basic one.. But if you have any other idea for speeding up my initial request ;-)
getdata('/inc/scripts/logwritter/logwritter.php?lang=fr-BE&searchstring=fze&searchtype=simple&resultscount=0&resultscount=0&queryduration=9.0122222900391E-5','logresult',<div class=ajaxloader><img src=/res/ani/ajaxloader_8cells_grey.gif></div>);
<input name="" type="button" onclick="WriteLogNow();" value="WriteLogNow()">