Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery Google日历JSON API未显示所有事件_Jquery_Json_Api_Events_Google Calendar Api - Fatal编程技术网

Jquery Google日历JSON API未显示所有事件

Jquery Google日历JSON API未显示所有事件,jquery,json,api,events,google-calendar-api,Jquery,Json,Api,Events,Google Calendar Api,我一直在使用GoogleCalendarJSONAPI,到目前为止,它工作正常。我唯一的问题是,它没有带来所有的事件,只是其中一些没有明显的原因 以下是我正在使用的代码: $.getJSON("http://www.google.com/calendar/feeds/weimar.org_cnijr5sa383f7kl28eu63996ec%40group.calendar.google.com/public/full?alt=json-in-script&max-results=25&

我一直在使用GoogleCalendarJSONAPI,到目前为止,它工作正常。我唯一的问题是,它没有带来所有的事件,只是其中一些没有明显的原因

以下是我正在使用的代码:

$.getJSON("http://www.google.com/calendar/feeds/weimar.org_cnijr5sa383f7kl28eu63996ec%40group.calendar.google.com/public/full?alt=json-in-script&max-results=25&singleevents=false&futureevents=true&sortorder=ascending&orderby=starttime&callback=?",

function(json){

var html = '<ul id="event_feed">';

$.each(json.feed.entry,function(i,entry) {

html += '<li><h3><span class="event_month">' + $.format.date(entry['gd$when'][0].startTime + ' 00:00:00.000', "MMM") + '</span><span class="event_day">' + $.format.date(entry['gd$when'][0].startTime + ' 00:00:00.000', "dd") + '</span></h3><p>' + entry.title.$t + '<br /></p><div class="clear"></div></li>';

})

html += '</ul>';

$('#calendar').html(html);

});
$.getJSON(“http://www.google.com/calendar/feeds/weimar.org_cnijr5sa383f7kl28eu63996ec%40group.calendar.google.com/public/full?alt=json-在script&max results=25&singleevents=false&futureevents=true&sortorder=ascending&orderby=starttime&callback=?“,
函数(json){
var html='
    '; $.each(json.feed.entry,函数(i,entry){ html+='
  • '+$.format.date(条目['gd$when'][0].startTime+'00:00.000',“MMM”)+'+'+$.format.date(条目['gd$when'][0].startTime+'00:00.000',“dd”)+''+entry.title.$t+'

  • ; }) html+='
'; $('#calendar').html(html); });
与日历小部件(JSON输出下方)相比,您可以看到JSON输出的内容。

例如,只显示一个“大学日”。

您的参数设置为
max results=25
-您有超过25个事件吗

看一看。您可能需要使用
开始索引

删除来翻阅结果

max-results=25

然后它将带来所有事件

futureevents=true