Results 1 to 9 of 9
  1.    #1  
    Does anyone know how to force a line break within a dialog box? I tried the following but none seem to work. Any suggestions???

    Code:
    <br/>
    "\r\n"
    "\n\r"
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  2. ird
    ird is offline
    ird's Avatar
    Posts
    156 Posts
    Global Posts
    167 Global Posts
    #2  
    It's supposed to be <br />.
  3.    #3  
    Quote Originally Posted by ird View Post
    It's supposed to be <br />.
    <br/> and <br /> are the same thing. Neither works.
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  4. ird
    ird is offline
    ird's Avatar
    Posts
    156 Posts
    Global Posts
    167 Global Posts
    #4  
    Yes, but technically it should be <br />. Use <p> to seperate each paragraph.
  5.    #5  
    I'm talking about in DIALOGS (pops up from the bottom in an app to prompt the user) within the assistants, not is the view files. They display HTML code as is and do not interpret it. I was trying to use JavaScript line breaks, but they don't seem to work either. I was asking if there was another way, I tried all of the above listed already...
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  6. #6  
    Did you try <br>?

    That always works for me... (without any back/forward slash)
  7. atlanta's Avatar
    Posts
    324 Posts
    Global Posts
    337 Global Posts
    #7  
    Try adding this as one of your parameters. Worked for me.

    allowHTMLMessage: true
  8.    #8  
    Quote Originally Posted by atlanta View Post
    Try adding this as one of your parameters. Worked for me.

    allowHTMLMessage: true

    Thanks atlanta, that worked great!!!
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  9. #9  
    For those who are interested in a sample code
    Code:
    this.controller.showAlertDialog
            ({
              onChoose: function(value) {},
              title: 'Your title',
              message: 'line1<br/>line2<br/><br/>line3',
              choices: [{label: 'OK', value: ''}],
    		  allowHTMLMessage: true
            });

    Or if you want enhance your message with html tags and pass arg such as the title of your application or version

    Code:
          var title = Mojo.Controller.appInfo.title + " - v" + Mojo.Controller.appInfo.version; 
    		var message = Mojo.Controller.appInfo.vendor + 
    		"<br/>line1<br/><br/><center><a href='http://www.yourwebsite.com'>www.yourwebsite.com</a><br/><a href='mailto:yourname@addr.com'>yourname@addr.com</a></center>";
            this.controller.showAlertDialog
            ({
              onChoose: function(value) {},
    		  title: title,
                      message: message,
                      choices: [{label: 'OK', value: ''}],
    		  allowHTMLMessage: true
            });
    Last edited by Ze-Palm; 12/18/2009 at 09:32 AM. Reason: add code #2
    _________________________________________________________
    Ze-Palm
    is ZE #1 innovative software solutions for PalmOS and Palm webOS.


    _________________________________________________________[/COLOR]

Posting Permissions