开发者

events as JSON feed, but passing extra parameters?

in the example code we're able to get even开发者_JAVA技巧ts from a JSON feed by passing a URL.

$('#calendar').fullCalendar({ events: "/myfeed.php" });

fullCalendar will visit a link like this: /myfeed.php?start=1262332800&end=1265011200&_=1263178646

Can I pass extra parameters to myfeed.php url? for example if I wanted to restrict events that are returned for a specific resource id.

ex: /myfeed.php?resourceid=1&start=1262332800&end=1265011200&_=1263178646

Thanks


Yes this has worked for me in the past. So your code should just be:

$('#calendar').fullCalendar({ events: "/myfeed.php?resourceid=1" });

Now I'm just having problems crossing domains!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜