Results 1 to 3 of 3

Thread: Ext.Msg.alert doesn't render newline properly

  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    82

    Exclamation Ext.Msg.alert doesn't render newline properly

    Hi,

    Here's my old code using regular text box:

    Code:
    alert(responseObject.responseText);
    which renders the alert box properly, with newlines for each "\n", so that it looks like a list of errors:
    [IMG]file:///C:/DOCUME%7E1/SYED_H%7E1/LOCALS%7E1/Temp/moz-screenshot.png[/IMG]alert.JPG

    Here's my new code, since I need a title for the alert box I use Ext.Msg.alert:
    Code:
    Ext.Msg.alert('Error',responseObject.responseText);
    But this doesn't do newlines for every "\n" in the responseText:
    extjsalert.JPG

    How can I get the effect of a regular javascript alert in extjs.msg.alert ??

  2. #2

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2010
    Posts
    82

    Default

    thanks it works.

Similar Threads

  1. Newline equivilent in Ext.MessageBox.alert()
    By thejoker101 in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 4 Sep 2015, 5:23 AM
  2. Ext.Msg.alert behaviour
    By Rose23 in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 17 May 2013, 1:20 AM
  3. Ext.Msg.alert not working
    By rtweed in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 22 Nov 2012, 10:58 AM
  4. Ext.msg.alert IE issue
    By rothaar in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 4 May 2009, 8:32 PM

Posting Permissions

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