【问题标题】:FullCalendar is not showing events in IE/FF from JSON feedFullCalendar 未显示来自 JSON 提要的 IE/FF 中的事件
【发布时间】:2012-12-28 13:58:47
【问题描述】:

我有一个有效的 JSON-Feed(使用 JSONLint 验证),它可以在 Chrome 中正常工作。但是 IE/FF 中没有显示任何事件。我尝试使用不同的时间格式以及类似问题中已经回答的所有其他内容。

JSON 提要:

[{"id":"64","title":"","start":"1356517800","end":"1356521400","allDay":false}]

日历:

    $('.roomscal').fullCalendar({
events: 'http://..../events.php'
            });

有人可以帮帮我吗?

【问题讨论】:

  • 有什么错误吗? Firebug 怎么说?
  • 在 Chrome 中 Firebug 显示正确的响应。当我在 FF 中尝试时,相同的请求在 Firebug 中为空。
  • Antwort-Header Date Fri, 28 Dec 2012 14:15:25 GMT 服务器 Apache X-Powered-By PHP/5.3.18-nmm1 Cache-Control no-cache, must-revalidate Expires Mon, 1997 年 7 月 26 日 05:00:00 GMT 变化接受编码内容编码 gzip 内容长度 94 Keep-Alive timeout=1, max=100 Connection Keep-Alive Content-Type application/json
  • 我在我的完整日历上尝试了这个,它在 Chrome 和 Firefox 中都运行良好(只是将我的 JSON 提要的输出硬编码到上面的输出中)。对我来说,在 12 月 26 日下午 6:30 显示为一个活动。

标签: json fullcalendar


【解决方案1】:

你检查缓存了吗?

$.ajaxSetup ({ 
  // Disable caching of AJAX responses 
  cache: false; 
});

告诉jQuery不要缓存。

代码在这里找到。 Stop jQuery .load response from being cached

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-01-12
    • 2011-02-21
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 2012-04-22
    • 2015-01-31
    • 1970-01-01
    相关资源
    最近更新 更多