0
我在此上使用jQuery Frontier Calendarpage除IE 8.0以外的所有東西都能正常工作並呈現良好,事件不會出現。初始化事件的代碼如下jQuery Frontier日曆不在IE 8中渲染事件
/**
* Initialize display event form.
*/
$("#display-event-form").dialog({
autoOpen: false,
height: 400,
width: 400,
modal: true,
open: function (event, ui) {
if (clickAgendaItem != null) {
var title = clickAgendaItem.title;
var startDate = clickAgendaItem.startDate;
var endDate = clickAgendaItem.endDate;
var allDay = clickAgendaItem.allDay;
var data = clickAgendaItem.data;
// in our example add agenda modal form we put some fake data in the agenda data. we can retrieve it here.
$("#display-event-form").append(
"<br><b>" + title + "</b><br><br>"
);
if (allDay) {
$("#display-event-form").append(
"(All day event)<br><br>"
);
} else {
$("#display-event-form").append(
"<b>Event Date:</b> " + startDate.toString('yyyy-MM-dd') + "<br><br>"
);
}
for (var propertyName in data) {
$("#display-event-form").append("<b>" + propertyName + ":</b> " + data[propertyName] + "<br>");
}
}
},
close: function() {
// clear agenda data
$("#display-event-form").html("");
}
});
<asp:Repeater id="m_eventOutput" runat="server">
<ItemTemplate>
jfcalplugin.addAgendaItem(
"#mycal",
"<%# DataBinder.Eval(Container.DataItem, "EventTitle") %>",
new Date('<%# DataBinder.Eval(Container.DataItem,"EventDate","{0:yyyy-MM-dd}") %>'),
new Date('<%# DataBinder.Eval(Container.DataItem,"EventDate","{0:yyyy-MM-dd}") %>'),
false,
{
Type: '<%# DataBinder.Eval(Container.DataItem, "EventType") %>',
Time: '<%# DataBinder.Eval(Container.DataItem, "Time")%>',
Venue: '<%# DataBinder.Eval(Container.DataItem, "Venue")%>'
},
{
backgroundColor: $("#colorBackground").val(),
foregroundColor: $("#colorForeground").val()
},
'<%# DataBinder.Eval(Container.DataItem, "EventItemId") %>'
);
</ItemTemplate>
</asp:Repeater>
});
任何想法爲什麼事件不會出現在IE8中。謝謝