View Single Post
Old 02-26-2008, 02:07 PM   #2 (permalink)
SOCK
The Acquainted
 
Join Date: Nov 2007
Posts: 154
Thanks: 31
SOCK is on a distinguished road
Default

You've confused / swapped the 'open' and 'send' methods. You should be using
Code:
xmlHttp.open("GET", "a.php", true);
xmlHttp.onreadystatechange= responseAsx;
xmlHttp.send(void);
You're also not using the responseAsx callback function correctly; notice how I've altered the code to use the name of the callback, not act as if it were a function call.

Wikipedia.org :: XMLHttpRequest
__________________
I reject your reality, and substitute my own.
SOCK is offline  
Reply With Quote
The Following User Says Thank You to SOCK For This Useful Post:
Orc (02-26-2008)