Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

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

From Wiki
Jump to: navigation, search
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

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.

This page was last modified on 25 July 2012, at 09:20.
26 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×