![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
PHP God
|
I just finished my active users script for my site and we all see active users lists on lots of sites and forums but i thought i'd try and make mine a bit more interesting by making it every once in a while without you having to reload the page. The script itself works fine but after about a minute the site just freezes. Now i really want to have the script there because it's a lot better than your ordinary boring active users list but i was wondering is there any way i can stop this freezing from happening. Here is the code i'm using to achieve this:
function Active (){
self.status = "Sending request"
initialize();
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState == 4){
var active = document.getElementById('active');
active.innerHTML = xmlHttp.responseText
}
}
xmlHttp.open("GET", 'http://www.staticfire.co.uk/ajaxrequest.php?cmd=active',true);
xmlHttp.send(null);
}
var delay = 20000
var timerID = setInterval("Active()", delay)Do you think it is this that is causing the freezing or the would it most likely be the PHP causing it? -Thanks for your time
__________________
mysql_query("DELETE chavs FROM earth") or die("chavs"); |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Option to increase the number of threads listed | peace_of_mind | Community Announcements and Feedback | 6 | Jul 21st, 2006 6:41 AM |
| Why MHz isn't a good measurement of speed when comparing Intel and AMD | a thing | Coder's Corner Lounge | 6 | Dec 18th, 2005 11:57 AM |
| Darkhack's cpu speed tester | JDStud6 | C# | 6 | Dec 17th, 2005 6:44 PM |
| fastest download speed | darkone916 | Coder's Corner Lounge | 17 | Aug 1st, 2005 10:22 PM |
| speed script | Bmxer_Jake | JavaScript and Client-Side Browser Scripting | 2 | Jun 25th, 2005 11:36 AM |