【问题标题】:How do I make a hyperlink to a Google Calendar event i just created?如何创建指向我刚刚创建的 Google 日历活动的超链接?
【发布时间】:2015-03-18 13:05:31
【问题描述】:

我正在使用 Google App Script 并在 google 日历中创建了一个活动...

  var createdEvent = myCal.createEvent(title, starttime, endtime, {description: notes, guests: cal.getId(), location: cal.getName()});

 var eventID = createdEvent.getId(); 

我现在正在尝试创建指向我刚刚创建的事件的超链接。有谁知道我该怎么做?我一直在搜索谷歌搜索引擎和 GAS 文档,但找不到任何东西。

谢谢。

【问题讨论】:

标签: google-apps-script google-calendar-api


【解决方案1】:

您好,试试这个,我已经设法使用FullCalendar 做到了,它会读取谷歌日历,您可以点击超链接的事件:

使用这个:

eventClick: function(event) {
                // opens events in a popup window
                window.open(event.url, 'gcalevent', 'width=800,height=700');
                $(this).css('border-color', 'red');
                return false;
            },

【讨论】:

    猜你喜欢
    • 2019-05-24
    • 1970-01-01
    • 1970-01-01
    • 2011-05-04
    • 2017-12-03
    • 1970-01-01
    • 1970-01-01
    • 2017-12-19
    • 1970-01-01
    相关资源
    最近更新 更多