Register with Forum Nokia now and you'll enjoy the full benefits of the Forum Nokia membership.
Register LoginInnovation Series Videos highlighting Forum Nokia developers
Nokia releases new Qt developer offerings
Forum Nokia Developer Conference, India
Optimise your website for mobile devices with mobile web templates and layouts
Creating Debian packages for Maemo Qt applications and showing in the application menu
Jackson Feijó
Read more about Jackson on the Champions website.
MobileMonday Italy: The User Applications
November 23, 2009
Rome
Nokia Developer Days in South Africa
December 01, 2009
Johannesburg, South Africa
Forum Nokia Developer Conference ’09, India
December 07, 2009
Bangalore, India
LeWeb
December 09, 2009
Paris
Web Runtime Coding With Aptana WRT Plug-in
December 09, 2009
9am New York | 2pm London | 4pm Helsinki
Web Developer’s Library
The Web Developer’s Library provides a comprehensive reference source for information on all aspects of WRT widgets — from
their structure and content to details of the S60 JavaScript objects.
Information on support for onKeyPress key event handling
Early versions of S60 Browser 7.1, for selected S60 3rd Edition, Feature Pack 2 and all S60 5th Edition devices from Nokia,
were released without support for onKeyPress to capture select and navigation key events. This Knowledge Base entry provides
details on how to address this issue.
Web Runtime (WRT) widgets are developed using standard web technologies that you are familiar with from having created sites for browsing with PC browsers.
However, new features have been designed to allow your widgets to work optimally on S60 devices. These features are:
A WRT widget must contain the following files:
All but the most basic widgets will also include some or all of the following files:
With the launch of the Nokia N97 mobile computer, it became possible to provide a view-only version of a widget in the S60 home screen. A home-screen view can be added to a widget that has the MiniViewEnabled key set in its info.plist file. The widget then needs to determine the screen on which it is being displayed and provide summary or detailed content accordingly.
For more information, see the Developing home screen widgets section of the Web Developer’s Library.
To enable the testing of home screen widgets, the Nokia N97 SDK provides an emulation of the Nokia N97 home screen.
WRT provides several JavaScript objects of two types: those designed to allow a widget to offer a user experience that is similar to that offered by S60 devices and those that provide access to device information and data.
There are three JavaScript objects that facilitate the creation of an S60 UI for a widget:
The JavaScript device device object provides the mechanism by which widgets can access and, in some cases, manipulate information about and on devices. The device object, which is delivered in WRT API 1.1, is now available for selected S60 3rd Edition, Feature Pack 2 devices and all S60 5th Edition devices from Nokia. The device object provides access to a number of service APIs:
Now these APIs are even easier to use, with many actions achievable through the addition of only one or two lines of JavaScript code using the Nokia Platform Services 2.0 beta JavaScript API. For example, a new contact can be added to the phone by use of the following code:
contact = { name:{ last:'smith', first: 'john'}};
addContact(contact)
The Platform Services 2.0 beta JavaScript API also offers an API that enables use of a device’s camera.
For more information, visit Nokia Platform Services 2.0 beta page »
The S60 platform supports multiple languages, and the WRT environment provides localisation support as well. If you’re planning to provide widgets to audiences in several countries, you may want to get more information about supporting multiple languages from the Supporting multiple languages section of the Web Developer’s Library.