编程语言
首页 > 编程语言> > javascript – 网站需要黑莓用户按钮才能将活动添加到他们的日历中

javascript – 网站需要黑莓用户按钮才能将活动添加到他们的日历中

作者:互联网

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

对于Outlook和iCal,我将ICS文件返回给用户.对于Google日历,有一个简单的URL可以执行此操作.我也想为Blackberry用户提供服务,但我不确定他们需要什么格式,以及他们的浏览器是否支持这样的操作.

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

也可以随意向我大喊大叫Android.
谢谢.

解决方法:

好像你正在寻找blackberry.launch.newAppointment().

FTA:

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,calendar,asp-classic,blackberry
来源: https://codeday.me/bug/20190827/1738175.html