I have determined that my JSON, coming from the server, is valid (making the ajax call manually), but I would really like to use JQuery. I have also determined that the "post" url, being sent to the server, is correct, using firebug. However, the error callback is still being triggered (parsererror). I also tried datatype: text.
Are there other options that I should include?
$(function() {
$("#submit").bind("click",
function() {
$.ajax({
type: "post",
url: "http://myServer/cgi-bin/broker" ,
datatype: "json",
data: {'start' : start,'end' : end},
error: function(request,error){
alert(error) ;
},
success: function(request) {
alert(myResult.length) ;
}
}); // End ajax
}); // End bind
}); // End eventlistener