使用Jquery插件fullcalendar日程表把任务表数据显示到日历日程表

u010468287 2013-04-26 04:46:24
$('#calendar').fullCalendar({
    events: function(start,end, callback) {
        $.ajax({
            url:'myxmlfeed.php',
            dataType: 'xml',
            data: {
                // ourhypothetical feed requires UNIX timestamps
                start:Math.round(start.getTime() / 1000),
                end: Math.round(end.getTime()/ 1000)
            },
            success:function(doc) {
                var events =[];
               $(doc).find('event').each(function() {
                   events.push({
                        title:$(this).attr('title'),
                        start:$(this).attr('start') // will be parsed
                    });
                });
               callback(events);
            }
        });
    }
});


它这里的 dataType :XML 我不太了解, 我不知道用什么方式将数据读出来, 然后循环到 里面..
...全文
260 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hefei0603 2013-04-26
  • 打赏
  • 举报
回复
myxmlfeed.php 这个页面的resphone需要返回一个xml。如果你用c#的话这个应该改成myxmlfeed.aspx

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧