×
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 - Adding missing translation link)
Line 20: Line 20:
  
 
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のバグを回避して、メッセージボックスを表示する方法]]

Revision as of 07:41, 16 December 2011


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

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.

Soluton

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

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.

42 page views in the last 30 days.