Make sure the status returns 200 before grabbing the responseText or responseXML.

http://www.w3schools.com/ajax/ajax_aspphp.asp