Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/421.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/2/jquery/71.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 jQuery FullCalendar-事件发生时单击打开弹出对话框_Javascript_Jquery_Fullcalendar - Fatal编程技术网

Javascript jQuery FullCalendar-事件发生时单击打开弹出对话框

Javascript jQuery FullCalendar-事件发生时单击打开弹出对话框,javascript,jquery,fullcalendar,Javascript,Jquery,Fullcalendar,我试图用FullCalendar在eventclick上打开一个jQuery弹出窗口,但没有成功。请帮帮我 下面的代码可以很好地显示数据,但是当我单击带有附加click事件的元素时,不会加载新页面进行编辑 $(document).ready(function(){ $('#calendar').fullCalendar({ theme: true, firstDay: 1, eventSources:[{ url:

我试图用FullCalendar在eventclick上打开一个jQuery弹出窗口,但没有成功。请帮帮我

下面的代码可以很好地显示数据,但是当我单击带有附加click事件的元素时,不会加载新页面进行编辑

$(document).ready(function(){
    $('#calendar').fullCalendar({
        theme: true,
        firstDay: 1,
        eventSources:[{
            url: 'task_home_loddata.php',
            type: 'POST',
            data: {usid: 1},
            error: function() {
                alert('there was an error while fetching events!');
            },
        }],


****** THIS SECTION DOES NOT WORK ********************

        eventClick: function(calEvent, jsEvent, view){
            var cmid=calEvent.id;
            $(this).css('border-color', 'red');
            window.$('<div class="cmm" align="center" style="width:100%;height:100%;"><iframe src="comment_respond.php?cmid='+cmid+'" width="100%" height="100%" frameborder="0"></iframe></div>').dialog({ 
                modal:true,
                width:750,
                height:500,
                title:'Open Task',
            });     
        }


    }); 
});

你在控制台中有错误吗?没有任何错误,只是不工作。你可以为我们在a中重新创建问题的简化版本吗?什么版本的jQuery?好的,我解决它。这是jQuery版本错误,Tnx all