“Object not supported” Javascript error trying to access FullCalendar

后端 未结 3 1488
暖寄归人
暖寄归人 2020-12-29 17:14

. .

I walked in this morning to find out that a calendar, implemented using FullCalendar and a public Google feed, is no longer working. The calendar does not appea

相关标签:
3条回答
  • 2020-12-29 17:33

    Got it.

    Apparently, it doesn't like the latest version of JQuery.

    The script source is set to point to http://code.jquery.com/jquery-latest.min.js. Just for grins, I pointed it to the jquery-1.7.1.min.js that came with the FullCalendar code.

    Lo and behold, it came right up.

    Edit: I updated the references to appear as they do in the FullCalendar example, i.e.:

    <script type='text/javascript' src='/js/fullcalendar-1.5.3/jquery/jquery-1.7.1.min.js'></script>
    <script type='text/javascript' src='/js/fullcalendar-1.5.3/jquery/jquery-ui-1.8.17.custom.min.js'></script>
    
    0 讨论(0)
  • 2020-12-29 17:40

    As curCSS was an alias for css you can add the code below to go around that issue.

    if(!$.curCSS) 
        $.curCSS = $.css;
    
    0 讨论(0)
  • 2020-12-29 17:53

    I think i got a way better answer :)

    In fact is the curCSS function that has been removed with jQuery 1.8, it's actually been deprecated since 1.3.

    The solution is to use css instead, so do a search & replace into the plugin replacing "curCSS" by "css"

    And it will be all fine!

    http://bugs.jquery.com/ticket/11787

    0 讨论(0)
提交回复
热议问题