Revision as of 02:35, 13 April 2011 by hamishwillee (Talk | contribs)

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

From Nokia Developer Wiki
Jump to: navigation, search

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


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.


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


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

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

47 page views in the last 30 days.