Closed zeitnot closed 11 years ago
toISOString() function generates quotes when rendered with ie8 js engine. So update the code:
var call= $.ajax({
"url" :"/new_program/front_calendar_controller.php",
"data" : "action=list&start_date="+start.toISOString().replace(/["']/g, "")+"&end_date="+end.toISOString().replace(/["']/g, ""),
"async" : false,
"type" : "post",
"dataType" : "json",
"success": function(msg){
}
});
Now it is workinG with İE8.
Hi,
I create an ajax query to fetch events dnynamically. When events run as statically there is no problem but when I am trying to fetch events, IE8 does not parse json output. With chrome or firefox there is no any problem. It works like charm. My ajax call is as below:
It seems that it crashes because of datetime. Dates are coming as mysql datetime format from my server. To convert them I create a function as below:
Is this a bug or what is the correct way to parse dynamic json usin IE8/9/10?