gpt4 book ai didi

javascript - 网站需要黑莓用户将事件添加到他们的日历的按钮

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:54:51 24 4
gpt4 key购买 nike

我在我们的网站上以类似日历的形式显示了一个事件列表,并希望访问者能够单击链接/按钮将特定日期添加到他们自己的计算机/PDA/电话日历中。

对于 Outlook 和 iCal,我向用户返回一个 ICS 文件。对于谷歌日历,有一个简单的 URL 可以做到这一点。我也想满足黑莓用户的需求,但不确定他们需要什么格式,以及他们的浏览器是否支持此类操作。

在谷歌上搜索答案让我对 Blackberrys 是否可以接受 ICS 文件或需要 VCS 感到困惑?我也从来没有接触过黑莓,所以我对所有方面都很无知!

也请随时向我大声疾呼 Android。谢谢。

最佳答案

您似乎在搜索 blackberry.launch.newAppointment() .

自由贸易协定:

The newAppointment() method creates a new appointment in the calendar application. The user must save the appointment before it is saved to the calendar.

Syntax

blackberry.launch.newAppointment({ summary, location, allDay, start, end, freeBusy, note })

关于用户交互,只是一个小的澄清(FTA):

The blackberry.launch object provides methods that lets you access core and add-on BlackBerry® applications through JavaScript®. Depending on the application, you can either launch the application or open the application and create a new item, such as a calendar entry or a task, and prepopulate any of the entry fields. Although the methods of the blackberry.launch object can open and create new items for an application, changes are not made to the application without confirmation from the user. For example, if you use the blackberry.launch object to make a phone call to a specific phone number, the user is prompted to confirm whether the user wants to proceed with the call before the number is dialed. Similarly, if you create a new item for any application, the user must save the item before it is added to that application.

编辑:似乎有 a workaround用于在黑莓上集成 .ics。

关于javascript - 网站需要黑莓用户将事件添加到他们的日历的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4434234/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com