No Callback after SQLite-Request

随声附和 提交于 2019-12-01 22:46:13

So if you use

 events: function(start, end, callback) { }

to make your events you have to create a jscript array .. not a json type string.

So as a basic and simple example that works.

events:function(start,end,callback)
        {
            var event = [];
            event.push({
                title: 'Garten',
                start: '2011-05-10T00:00:00',
                allday: true
            });

            callback(event);
        }

On it works as this example shows

http://jsfiddle.net/ppumkin/6wE8v/

You just need to plug your db stuff in. Apologies for the confusion in the comments

so a bit of your code:

id: rs.fieldByName('id'),
title: rs.fieldByName('title'),
start: rs.fieldByName('start'),
etc..
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!