posted 17 years ago
xmlHttp.onreadystatechange=stateChanged(spanName)
xmlHttp.open("GET",url,true)
wrong order, flip them
Also you can not do this:
stateChanged(spanName)
you are executing the function not assiging it.
You need to find a different way of passing the spanName.
It would help if you used OOP, but since you are using a global variable to hold the requeest object, put the spanName in a global variable also.
Eric
[ December 15, 2006: Message edited by: Eric Pascarello ]