Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:Calendar for Symbian Web Runtime

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Code Example
Source file:
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Created: sellis (14 Feb 2008)
Last edited: hamishwillee (18 Sep 2012)


This example Javascript code is intended for re-use and incorporation into larger projects.


Calendar is a graphical user interface library, written in JavaScript language and designed for the S60 Web Runtime platform (WRT). The library can be used to create a popup calendar window for selecting a date.

The date format returned by the Calendar object is [dd/mm/yyyy] regardless of the system locale.

Calendar can be controlled in two ways, either by using the cursor mode or the tabbed mode. When a calendar object is created in tabbed mode, it is controlled by the "keypress" event of the five-way navigation key (on S60 devices) and therefore requires the browsing mode of a widget to be set to tabbed mode (as opposed to cursor mode). Calendar, however, does not enforce this requirement automatically. Widgets that use the library then need to set the browsing mode accordingly. When a calendar object is created in cursor mode, a widget can easily use the calendar with other UI components that may require the cursor mode. However, browsing previous and next month with the cursor mode is not as convenient as in the tabbed mode.

An external file named LocalizedCalendar.js, where the localized month and weekday texts are defined, is required with the calendar object. See localization implementation in the demo widget.

For more information about localization, refer to the WRT API reference section of the Web Developer’s Library published on the Nokia Developer website.

Popup calendar demo.jpg

Example application

This page was last modified on 18 September 2012, at 05:34.
82 page views in the last 30 days.