Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Show the status of counter
- mich dobelman
August 21, 2006, 6:57 am
rate this thread
I am caling this script through AJAX. I want to be able to show in the html
where this counter is at the moment.
if( window.XMLHttpRequest )
http_request = new XMLHttpRequest();
http_request.onreadystatechange = getResult;
http_request.open('POST', "counter.php, true );
if( http_request.readyState == 4 )
if( http_request.status == 200 )
Re: Show the status of counter
Only the script knows where it is at the time. It cannot be told to
report how far it is when it is already running.
You could set an extern variable (file, database, etc.) to a certain
value on every 1000 or so 'count', which will be accessable to other