Categories: S60 3rd Edition, Feature Pack 2 | Web Runtime (WRT) | Code Examples | JavaScript/ECMAScript
This page was last modified 12:37, 2 May 2008.
CS000943 - WRT NumKeyTranslator Widget
From Forum Nokia Wiki
| ID | CS000943 | Creation date | May 2, 2008 |
| Platform | S60 3rd Edition, FP2 | Tested on devices | |
| Category | S60 Web Runtime | Subcategory | |
| APIs | Classes | ||
| Methods |
Purpose
This example Javascript code is intended for re-use and incorporation into larger projects.
Overview
NumericKeyTranslator is a key map engine, written in JavaScript language and designed for the S60 Web Runtime platform. The library can be used mainly in Web widgets for S60 to overcome the problem of key event being absorbed by the widget engine while a text edit field is in editing mode. Thus, a widget cannot instantly receive a key event to detect which character has just been entered into the edit field. One of the use cases is implementing an instant searching function where input characters must be retrieved immediately after the user types them into the search field (a text input field).
To use the NumericKeyTranslator with a text edit field, that is, <input type="text" />, the input element must be set to read-only to prevent the user from setting it to the editing mode. <input type="text" readonly="true"/>
NumericKeyTranslator can be used with any element that can reasonably display characters on it, for example aExample application
Image:NumKeyTranslator.zip| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 广州Widget Hands-on training | happywolf | Web Technologies and Multimedia Content- Web 技术和多媒体内容 | 1 | 2008-04-14 06:53 |
| Nokia N95 8GB adds Flash Lite 3 support | biskero | Flash Lite on Nokia Devices | 17 | 2008-02-15 21:59 |
| 'paragraph seperator' character instead of 'newline' | bercobeute | Python | 3 | 2006-04-16 18:56 |
| Strange canvas behaviour | qwerty86poka | Python | 1 | 2006-08-15 09:07 |
| ASE ( Application Server Entity) Account | fabs2000 | General Messaging | 2 | 2002-12-11 08:33 |


