tags:

views:

79

answers:

2

I want to create a simple multiline Alert popup

Alert.show("Blah\\nBlah")

shows Blah\nBlah when what I really want is two lines, one Blah each.

+4  A: 

If it is anything like most languages, then you only need to have \n to get a new line. having \\n is saying that you actually do want to draw a \ because normally the back slash is used to say your about to do some thing special.

thecoshman
+1 beat me to it by 20 seconds. OP should use \n, not \\n for newline.
Robusto
beat me to it :P
lugte098
up vote for being proud to be slow :P
thecoshman
I guess duh applies here :) Thanks!
+2  A: 

Try:

Alert.show("Blah\nBlah")
lugte098