| Issue 459: | Events not displaying on ie | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Please include a demonstration of your bug (URL or ZIP attachment), as well
as a detailed description.
The events are displayed perfectly on mozilla and chrome but they are not
displayed on ie at all
this is how im getting the events(JSON)
events: function(start, end, callback) {
$.ajax
({
async: false,
type: "POST",
url: "services/Schedule.asmx/GetEventsByMonth",
data: "{theStartDate: \'" + start + " \'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
var inumobs = msg.d.length;
var tempevents = [];
for (var i = 0; i < inumobs; i++)
{
tempevents.push
({
"title": msg.d[i].Entity.Title,
"start": jsonParseDate(msg.d[i].Entity.StartDate),
"end": jsonParseDate(msg.d[i].Entity.EndDate),
"type": msg.d[i].Entity.EVENT_TYPE.Type,
"description": msg.d[i].Entity.Description,
"EventID": msg.d[i].Entity.Id
});
}
callback(tempevents);
}
});
}
jsonparsedate returns a proper date
function jsonParseDate(obj) {
if (typeof obj !== "string")
{
return obj;
}
var match = obj.match(/^\/Date\((-?\d+)\)\/$/);
if (!match)
{
return obj;
}
var d = new Date(parseInt(match[1]));
return d;
}
Jun 14, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Done
|
|
| ► Sign in to add a comment |