Checking online status
Posted: Fri Dec 15, 2006 3:12 pm
Hey all.
I have a page that displays the online status of a computer on the internet using a basic :
Many users rely on this script to determine if that computer is online or not. Unfortunately they always have to refresh the page to see any status changes. I understand ( or at least i think i understand ) that i can fix this using Ajax. That way they don't have to refresh the page because it will do it for them in real-time.
Can someone point me in the right direction here, as i am not exactly savvy in javascript. I have browsed around the internet for scripts that do this but came up empty ( all of them were for messenger services. )
Or perhaps show me some example code.
Thanks a lot
-- tarja
I have a page that displays the online status of a computer on the internet using a basic :
Code: Select all
$status = @fsockopen($ip_address, $port, $errno, $errstr, 2);Can someone point me in the right direction here, as i am not exactly savvy in javascript. I have browsed around the internet for scripts that do this but came up empty ( all of them were for messenger services. )
Or perhaps show me some example code.
Thanks a lot
-- tarja