[jQuery] Error returned from .ajax POST
Hi guys,
I am getting an error returned from an .ajax call "SyntaxError:
missing ; before end statement"
$.ajax({
async: true,
type: 'POST',
url: '/index.cfm?event=someevent',
dataType: 'json',
data: 'myId=2',
success: mySuccessFuction,
error: function(obj,err,err2){
alert(err);
}
});
Anyone see anything wrong with this? The submission is actually doing
what it is supposed to do, I am returning:
{
success:"1",
message:"Your post was successful"
}
Thanks