Monday, November 2, 2009

[jQuery] ajax not sending back details

I am trying to send data to a remove server via ajax. I am recieving the
xmlHttpRequest Object, but all of its properties are undefined or empty

$('#testReq').click(function(){

alert('Button Works!');
$.ajax({
type: "POST",
url: "http://play.anthonylgordon.com/usersessions/store",
data: 'data=Test',
error: function(e) { alert("Failure: " + e.readystatechange ); },
//Comes back undefined
success: function(msg){
alert( "Data Saved: " + msg );

}

});

})


I also tried
e.responseText

and

e.statusText

and all of the other properties. what am i doing wrong
--
View this message in context: http://old.nabble.com/ajax-not-sending-back-details-tp26157740s27240p26157740.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

No comments: