Hello all,
JQuery seems to be giving an error when trying to pass an alphanumeric parameter like so:
$.ajax({
type: "POST",
url: "Default.aspx/AjaxTest",
data: "{eventID:9a5}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
alert(msg.d);
},
error: function(e) {
alert("Event could not be added to calendar");
}
});
when the above method is called, the error callback is called. However when I change the eventID parameter to a purely numeric value, it works fine and the success callback is called. I would like to pass an alphanumeric value to a server method and this doesnt seem to work. Any help would be appreciated.
Ahmed