1

我正在全日历制定议程。它适用于除 IE 之外的所有浏览器。它呈现了我可以在源代码中看到的条目,但它没有在浏览器中显示它们。我已经在 Expression Engine 中创建了我的网站。我使用的代码是:

<link href='{site_url}ontwerp/intranet/scripts/fullcalendar/fullcalendar.css' rel='stylesheet' />
<link href='{site_url}ontwerp/intranet/scripts/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='{site_url}ontwerp/intranet/scripts/jquery-1.10.2.min.js'></script>
<script src='{site_url}ontwerp/intranet/scripts/jquery-ui-1.10.3.custom.min.js'>  </script>
<script src='{site_url}ontwerp/intranet/scripts/fullcalendar/fullcalendar.min.js'></script>

<script>


$(document).ready(function() {

    var date = new Date();
    var d = date.getDate();
    var m = date.getMonth();
    var y = date.getFullYear();

    $('#calendar').fullCalendar({
        editable: true,
        events: [
            {embed="intern/agenda_data"}
        ]
    });

});

</script>

嵌入/议程数据:

{exp:channel:entries channel="agenda" show_future_entries="yes" show_expired="yes" dynamic="off" limit="99999"}
{
    title: '{title}',
    start  : '{entry_date format="%Y-%m-%d %H:%i"}',
    end : '{expiration_date format="%Y-%m-%d %H:%i"}',

    {if agenda_categorie=="Vakantie"}color: '#f5a320'{/if}
    {if agenda_categorie=="Events VB"}color: '#c03d09'{/if}
    {if agenda_categorie=="Betaalperiode"}color: '#5f781c'{/if}
    {if agenda_categorie=="Decoratie"}color: '#186490'{/if}
},
{/exp:channel:entries}

如果有人可以提供帮助,那就太好了。

4

1 回答 1

0

根据 IE 的版本,它不支持该 JS 对象末尾的开放逗号。如果您backspace=1在频道进入循环中这样做,它应该可以解决问题。

于 2019-02-05T16:54:32.593 回答