×
Namespaces

Variants
Actions
(Difference between revisions)

How to show a message box avoid of the bug in 'Alert'

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Automated change of category from Web Runtime (WRT) to Symbian Web Runtime)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update - Add ArticleMetaData)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
[[Category:How To]][[Category:Symbian Web Runtime]][[Category:Code Examples]][[Category:S60]]
+
{{ArticleMetaData <!-- v1.2 -->
 +
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Qt SDK 1.1.4]) -->
 +
|platform= <!-- Compatible platforms - e.g. Symbian^1 and later, Qt 4.6 and later -->
 +
|devicecompatability= <!-- Compatible devices e.g.: All* (must have internal GPS) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Signing requirements - empty or one of: Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20080503
 +
|author= [[User:Fengforky@gmail.com]]
 +
}}
 +
[[Category:How To]][[Category:Symbian Web Runtime]][[Category:Code Snippet]][[Category:Symbian]]
  
 
Compatibility: '''''Web Runtime in S60 3rd Edition, Feature Pack 2'''''
 
Compatibility: '''''Web Runtime in S60 3rd Edition, Feature Pack 2'''''
Line 20: Line 42:
  
 
Of course, we should include WRTkit.js which was provided by nokia to make UIManager to be known.
 
Of course, we should include WRTkit.js which was provided by nokia to make UIManager to be known.
 +
<!-- Translation --> [[ja:Alertのバグを回避して、メッセージボックスを表示する方法]]

Latest revision as of 12:20, 25 July 2012

Article Metadata
Compatibility
Platform(s):
Symbian
Article
Created: fengforky@gmail.com (03 May 2008)
Last edited: hamishwillee (25 Jul 2012)

Compatibility: Web Runtime in S60 3rd Edition, Feature Pack 2

[edit] Problem

Developing widget with javascript. It has a bug with the Alert("") in JavaScript to be shown in S60: There is a sign of unknown character '口' appeared in left upper position.

[edit] Soluton

How to avoid it? We could use below code instead of alert to show a message to user.

[edit] Code

	var uiManager = new UIManager();
uiManager.showNotification(3000, "warning", "Input error. Try again.");
 
//or
uiManager.showNotification(3000, "OK", "Done successfully.");

Of course, we should include WRTkit.js which was provided by nokia to make UIManager to be known.

This page was last modified on 25 July 2012, at 12:20.
49 page views in the last 30 days.
×