01-18-2013 04:33 AM
I have the need to display dialog boxes at several points in my app - mainly error messages - and have formatted the messages across multiple lines using \n. In a js alert box, this displays well yet when using blackberry.ui.dialog.standardasyncask the \n just gets displayed as "\n" rather than a new line. Any ideas?
My app is html5 and javascript. Any ideas?
an example of the text to be displayed is:
"Welcome to <myapp> \n\nTo start using <myapp>, please first select the round you wish to shoot. \n\nOnce your have selected your round, simply click the 'Start Round' button. \n\n To score, either touch the appropriate area of the displayed target face or use the appropriate buttons. \n\nIf you have any issues, please do not hesitate to contact us."
01-18-2013 04:45 AM
try using escape(text) before sending to the dialog
01-18-2013 05:08 AM
Thanks for the prompt reply nunodonato. Unfortunately, using escape(text) just encodes a load of %20 where there is meant to be spaces within the text...
01-21-2013 02:46 AM
I think you cannot do this with standardAskAsync, it does not accept any control character, niether any html tag. You may use javascript alert with \n, but it does not look nice.
01-21-2013 03:18 AM