I have this jQuery code:
$.ajax({
type: "POST",
url: "/problems/vote.php",
dataType: "json",
data: dataString,
success: function(data)
{
// ? :)
alert (dataString);
},
error : function(data)
{
alert("ajax error, json: " + data);
//for (var i = 0, l = json.length; i < l; ++i)
//{
// alert (json[i]);
//}
}
});
And when I use it, I get in the alert something cryptic like this: object XMLHTTPReqest
How do I actually get the value that was passed in from the AJAX?
Thanks!
In a couple ways:
or
or in chrome/safari and firefox (firebug) set a break point and check it out.