Don't use setInterval on methods that use ajax. Instead use setTimeout as the last action in the callback for the ajax request.
The ajax request takes time, so making the request at a specific interval may result in requests being processed much closer together than expected. What you really want to do is setup the timer to make the request X seconds after the update process has completed. On Oct 31, 6:23 am, "Samy RABIH" <[EMAIL PROTECTED]> wrote: > Hi all > I'm french PHP developer (part of the Spongestats project > -http://spongestats.sourceforge.net) and a newbie user of jQuery. > > I recently used jQuery to implement an ajax-powered refresh system for my > last visitors (as shown onhttp://fetardalyon.sytes.net/Spongestats/v3/). > > But, I encoutered the following bug : setInterval is used to call an other > page, every X seconds, and retrieve new visitors by ajax call. And, each > ajax-call is executed twice :( > > By removing LiveQuery plugin, I can say this plugin is the source of my bug, > but I need it to start events on ajax-generated content. > > So, can anybody help me to resolve it? > > Cordially > > Samy RABIH > [EMAIL PROTECTED]