Results 1 to 4 of 4

Thread: Multi-line message with Ext.Msg.alert() ?

  1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Toulouse, France
    Posts
    12
    Vote Rating
    0
      0  

    Default Multi-line message with Ext.Msg.alert() ?

    Hello,

    I've just migrated my app from Ext 4.1.0 to 4.1.1, and I saw that a lot of my alert messages weren't displayed properly anymore. These messages are HTML, and I use Ext.Msg.alert() or Ext.Msg.show() to display them.

    All the tags are working, except <br> tags. I tried to replace them with \n, \u000A, and <br/>, but nothing works .

    Anyone can offer me a solution ?
    Thanks !

  2. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    91
    Answers
    8
    Vote Rating
    5
      0  

    Default

    Quote Originally Posted by Squ36 View Post
    Hello,

    I've just migrated my app from Ext 4.1.0 to 4.1.1, and I saw that a lot of my alert messages weren't displayed properly anymore. These messages are HTML, and I use Ext.Msg.alert() or Ext.Msg.show() to display them.

    All the tags are working, except <br> tags. I tried to replace them with \n, \u000A, and <br/>, but nothing works .

    Anyone can offer me a solution ?
    Thanks !
    Have you tried <p> tag? Try placing it in front of the char where you think you need a line break. I think it works.

    Regards,
    Premkumar. A

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Toulouse, France
    Posts
    12
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by a.premkumar View Post
    Have you tried <p> tag? Try placing it in front of the char where you think you need a line break. I think it works.

    Regards,
    Premkumar. A
    Hi,

    Thanks for your solution, but I've tried it and it doesn't work. From what i could gather from various Ext topics, the text in the message box is encased in a <span> tag (inline tag). This means that no block type tag can be used inside it (either it will be stripped by a cleaning functon, or it will simply not render).

    Thanks anyway

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    91
    Answers
    8
    Vote Rating
    5
      0  

    Default

    Well I use 4.1.1. I tried that before replying thread. It worked for me though.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •