Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/420.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/6.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
Javascript FullCalendar:尝试使用json文件显示事件时接收错误_Javascript_Php_Json_Fullcalendar - Fatal编程技术网

Javascript FullCalendar:尝试使用json文件显示事件时接收错误

Javascript FullCalendar:尝试使用json文件显示事件时接收错误,javascript,php,json,fullcalendar,Javascript,Php,Json,Fullcalendar,以下是我的JSON文件: 或者我也尝试了下面的方法…但不起作用,上面给我警告信息,下面什么也没给我 events: 'vehicle_json.php', &一旦上述问题得到解决,那么我还想通过以下方式更新我的事件:当记录保存时,刷新事件以显示更新事件 $.ajax({ url: "save_booking_details.php", type: "POST", data: {booking_id: bookingid, date_single: datesingle,

以下是我的JSON文件:

或者我也尝试了下面的方法…但不起作用,上面给我警告信息,下面什么也没给我

events: 'vehicle_json.php',
&一旦上述问题得到解决,那么我还想通过以下方式更新我的事件:当记录保存时,刷新事件以显示更新事件

$.ajax({
    url: "save_booking_details.php",
    type: "POST",
    data: {booking_id: bookingid, date_single: datesingle, date_from: datefrom, date_to: dateto},
    success: function(data){
        //alert(data);
        //location.reload();

        //$('#calendar').fullCalendar('removeEventSource', curSource[0]);
    //$('#calendar').fullCalendar('removeEventSource', curSource[0]);
    $('#calendar').fullCalendar('refetchEvents');
    //Calendar.init();
            //setTimeout(function(){ Calendar.init(); }, 10000);

    }, error: function() {
        alert("something went wrong!");
    }
});

所以,从昨天开始,我一直在寻找解决方案,请有人帮助我。谢谢各位高级人员。

您必须提供一个名为
ch
的参数。不知道是什么

data: {
    'ch': "something I don't know"
},

抱歉,兄弟,但根本不起作用:数据:{ch:'bla'//custom_param1:'something',//custom_param2:'somethingelse'},您确定您的
车辆id
数据库中有类似于'bla'的内容吗?新的错误是什么?Wow bro感谢您它“像我这样工作了很长时间,我没有考虑它,但是您对我上面提到的关于$(“#calendar”)的其他问题有解决方案吗。fullcalendar('refetchEvent'))
$.ajax({
    url: "save_booking_details.php",
    type: "POST",
    data: {booking_id: bookingid, date_single: datesingle, date_from: datefrom, date_to: dateto},
    success: function(data){
        //alert(data);
        //location.reload();

        //$('#calendar').fullCalendar('removeEventSource', curSource[0]);
    //$('#calendar').fullCalendar('removeEventSource', curSource[0]);
    $('#calendar').fullCalendar('refetchEvents');
    //Calendar.init();
            //setTimeout(function(){ Calendar.init(); }, 10000);

    }, error: function() {
        alert("something went wrong!");
    }
});
data: {
    'ch': "something I don't know"
},