English 中文(简体)
全面说明:为什么日历上页上两度出现?
原标题:Fullcalendar: why is the calendar appearing twice on the page?

我正在使用全程顶替 j,出于某种原因,日历上正两次。 这并不是同一页上两例全页的问题。

相反,在第一个日历的底部,第二个日历相同。

我确认,我的网页上只有一只缩略语,因此这一错误与我称之为全程的js有关。 我认为。

任何帮助都受到高度赞赏。

JS Code:

jQuery( #calendar ).fullCalendar({


        year: jQuery.today.getFullYear(),
        month: jQuery.today.getMonth(),
        date: jQuery.today.getDate(),
        theme: true,
        contentHeight: 1000,
        header: {
            left:  prev,next today ,
            center:  title ,
            right:  month,agendaWeek,agendaDay 
        },
        defaultView:  agendaDay ,
        dayClick: function(date, allDay, jsEvent, view) {
                           // a lot of custom code
                    }
            });

传真:

<table><tr><td valign="top" width="700px"><div id="calendar"></div></td></tr></table>

别的“ j”字体内满载体(这把一日制推器 d成一页,左上页)。

jQuery( #datepicker_for_calendar ).datepicker({
          defaultDate: jQuery.today,
          minDate: jQuery.startDate,
          maxDate: jQuery.endDate,
          inline: true,
          showButtonPanel: true,
          onSelect: function(dateText, inst) {
              var d = new Date(dateText);
              jQuery( #calendar ).fullCalendar( gotoDate , d);
              selectedDate = d;
          }
      });
最佳回答

在经过一个长时间的 b子检测之后,我发现这一 j子:

(一)

http://plugins.jquery.com/project/once

问题一经在全程之前对准端 d适用,只完成了一个日历。

工作守则:

jQuery( #calendar ).once( calendar ).fullCalendar({

... })

问题回答

我最近也遇到了同样的问题,并曾经尝试过一次。 j Query plugin, which don t work for me. 然而,我重新卸下了非污染源,在最初的招标方法中,我增加了以下线,作为这种方法的第一线,并解决了我的重复日历方法。

element.html( );

我的猜测是我的问题,因为我正在重新开始关于减少变化的日历,而没有更新这一页。 看来,“js”法经常将日历推到现有的四位,而没有取消现有日历。

Add a.html( ); to function f() in the minified version.
I had mine open up in a dialog, every time I clicked a button to open there would be another calendar.
After a bit of reading, I found the method to use - .fullCalendar( destroy ) - that way you do not need to edit the plugin.
Now, upon closing the dialog and re-opening, only one calendar appears.

http://api.jquery.com/one"rel=“nofollow noretinger” http://api.jquery.com/one

akin to @netefficacy (using one und once):

$(#calendar ).one(日历 ).fullCalendar ({......})





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签