xmlhttprequest help!!!
Posted: Fri Sep 23, 2005 3:59 pm
I'm using xmlhttprequest to grab info from my database and output it to the screen without having to refresh the page...a fairly standard and seemingly easy task for AJAX.
However, i always seem to be getting a null response in the xmlhttprequest object. I verified its null two ways, with xmlhttprequest debugger and by checking the actual packets with ethereal.
When i call the server script, with the same request url as passed to the xmlhttprequest object, manually, everything works fine. Its only when i call it through the object that the response is null. Does anyone have any idea whats going on?
Also, when checking ethereal, the http GET returns 200 but the data is not to be found. What happened to the output?
I'm new to AJAX and from what i've seen online, server side php scripts are just echo'ing the data to be returned to the object. Is this correct? Do i need to do something else to return the data?
Thanks in advance
However, i always seem to be getting a null response in the xmlhttprequest object. I verified its null two ways, with xmlhttprequest debugger and by checking the actual packets with ethereal.
When i call the server script, with the same request url as passed to the xmlhttprequest object, manually, everything works fine. Its only when i call it through the object that the response is null. Does anyone have any idea whats going on?
Also, when checking ethereal, the http GET returns 200 but the data is not to be found. What happened to the output?
I'm new to AJAX and from what i've seen online, server side php scripts are just echo'ing the data to be returned to the object. Is this correct? Do i need to do something else to return the data?
Thanks in advance