Posted by Erwin Moller on 08/21/06 15:58
mich dobelman wrote:
> I have one script called counter.php (count till 100,000 when this script
> is called).
> I am caling this script through AJAX. I want to be able to show in the
> html page
> 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 );
You might want to add a " around counter.php.
Regards,
Erwin Moller
> http_request.send(null);
>
> }
>
> function getResult()
> {
> if( http_request.readyState == 4 )
> {
> if( http_request.status == 200 )
> {
>
> }
> }
> }
[Back to original message]
|