New Line in Alert Box

I have an alert when a new version of software is available
for download. The alert receives the text from an XML file for
different languages. The problem I run into is when it shows the
alert it displays the \n characters in the alert text. Does this
have to be stored in the HTML Code format within the XML? i.e.:
&#92 for \ If not how can I correct this? When I just enter the
alert in plain text without loading it from an XML source it works
great.
Here is some code:
Alert.show(Locale.loadString("IDS_NEW_VERSION")
IDS_NEW_VERSION = A new version is available.\n Please
upgrade by selecting \n information \n downloads \n from \'Select
Info\' \n Follow instructions on that page

I spent like two hours trying to work it out and all i had to do was add another "/"............damn.
Thanks for the help JN, appreciate it.

Similar Messages

  • [CS5/JS/ScriptUI]: All contents is removed from tabbedpanel when showing alert box or other Window.

    When I open a new window (an alert box, another scriptUI window, or an old style InDesign dialog) from my non modal ScriptUI interface, the contents inside all tabs on the tabbedpanel of the window disappear completely, and the last tab is selected.
    Other controls, outside the tabbed panel (but in the same window) are left untouched.
    I suspect the error has to do with the tab control. I have been able to recreate the error in an extremely simple window, and I attach the code below.
    #targetengine 'test'
    var Window1 = new Window('palette','Test',undefined);
    buildWindow();
    Window1.show();
    function buildWindow(){
        Window1.tabMain = Window1.add('tabbedpanel',undefined,undefined);
        Window1.tabMain.minimumSize= [450,170];
        Window1.tabMain.Tab1 = Window1.tabMain.add('tab',undefined,"Tab 1");
        Window1.tabMain.Tab1.Static1 = Window1.tabMain.Tab1.add('staticText',undefined,"Text on tab 1");
        Window1.tabMain.Tab2 = Window1.tabMain.add('tab',undefined,"Tab 2");
        Window1.tabMain.Tab2.Static1 = Window1.tabMain.Tab2.add('staticText',undefined,"Text on tab 2");
        Window1.tabMain.Tab1.btnTest = Window1.tabMain.Tab1.add('button',undefined,"Test");
        Window1.tabMain.Tab1.btnTest.onClick = function(){alert('btnTest_onClick')};
        // Trying with calls to layout . (This button is not affected by the alert showing - only controls inside the tabbed panel)
        Window1.btnLayout = Window1.add('button', undefined, 'Window1.layout.layout()');
        Window1.btnLayout.onClick = function(){Window1.layout.layout()};
    The interface works well in CS4, and also if I make the window modal (by creating it as a "dialog").
    In CS5, the result is this:
    Calling layout.layout() or layout.resize() doesn't do anything.
    If someone else would like to try my code, do you get the same effect?
    Is the behaviour known?
    Is there a way to prevent this from happening for non modal ScriptUI windows?
    Best regards,
    Andreas Jansson

    Thanks Marijan, for testing and letting me know!
    I filed a bug report now. We would perhaps have to "force" a couple of our clients to an upgrade from CS5 to CS5.5 in order to beat this bug and get it working, unless Adobe acknowledges it quickly, which I don't count on.
    No good news then... I took for granted that the interface would work in CS5 if I made it in CS4.
    (The thing that I was mostly concerned about was a tree view which I tested in Mac/PC and on CS4/CS5. Not the "tabbed panel"...)
    Andreas
    Adding this answer I got from Adobe:
    Monday, November 21, 2011 2:21:03 AM PST
    Hello Andreas,
    I was able to replicate this problem with InDesign CS5. This bug seems
    to have already been fixed as a side effect of some code change within
    InDesign CS5.5.
    I have logged this under bug # 3050997. This will now be worked upon by
    InDesign engineering and should be fixed soon.
    I'll keep you informed about updates on this bug.
    Message was edited by: Andreas Jansson. Response from Adobe added.

  • Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

    I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
    My question is there any way to add a space or a line break after the comma for each listed item?
    Here is an image of the output where the listed items are all run together.
    Here is the code:
    function validateFields()
    //a counter for the number of empty fields
    var flg = 0
    // count all the form fields
    var n = this.numFields
    //create an array to contain the names of required fields
    //if they are determined to be empty
    var fArr = new Array();
    //loop through all fields and check for those that are required
    // all fields that have a '*' in their tool tip are required
    for(var i = 0;i<n;i++){
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    //tool tip is the fields\'s 'userName' property;
    var tt = f.userName
    //test for the '*';
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
    //increment the counter of empty fields;
    flg++;
    //add the fields userName (tool tip) to the list of empty field names;
    fArr[fArr.length] = tt;
    //now display a message if there are empty fields
    if(flg>0){
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    else{
    this.print();

    Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
    I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
    Thanks again and here is the result of the updated code:

  • Alert box:No more free items available, please create new one

    Hi,
    We are running a SAP ERP Ecommerce, we get a strange alert box message "no more free items available, please create a new one". This alert window pops up only when you have created one order in a session and you are trying to create another order. Has anyone come across this issue?
    Steps to recreated this issue
    1. Create an order with any product - quantity is rounded to next possible value.
    2. Order created, close the order.
    3. Trying to create new order. (Product field is not a text box anymore)
    4. Try to transfer product from catalog by hitting shopping basket icon.
    5. Error message -> "No more free items available, please create new one".
    Thanks,
    -Tarun

    Hi,
    We are running a SAP ERP Ecommerce, we get a strange alert box message "no more free items available, please create a new one". This alert window pops up only when you have created one order in a session and you are trying to create another order. Has anyone come across this issue?
    Steps to recreated this issue
    1. Create an order with any product - quantity is rounded to next possible value.
    2. Order created, close the order.
    3. Trying to create new order. (Product field is not a text box anymore)
    4. Try to transfer product from catalog by hitting shopping basket icon.
    5. Error message -> "No more free items available, please create new one".
    Thanks,
    -Tarun

  • Addind text in a new line within a  text box

    Hi everyone,
    I have a classic text box component that i am using inside
    director. I want to show some text inside this text box in such a
    way that it should come in. For example I am adding "Item 1" ,
    "item 2", " item 3" then every item should be placed in new line.
    I tried using new line symbol ( \ ) it but it didn't worked.
    set member("textbox").text = "Item 1 " & \ & " item
    2" & "Item 3" ---------> this gave me error
    Please suggest how to do this thing.
    Thanks
    Atul Saxena

    Hi Atul,
    Try using 'RETURN'
    set member("textbox").text = "Item 1 " & RETURN & "
    item 2" & RETURN &
    "Item 3" --------->
    Tim
    "Atul Saxena" <[email protected]> wrote in
    message
    news:envfet$dpt$[email protected]..
    > Hi everyone,
    > I have a classic text box component that i am using
    inside director. I
    > want to
    > show some text inside this text box in such a way that
    it should come in.
    > For
    > example I am adding "Item 1" , "item 2", " item 3" then
    every item should
    > be
    > placed in new line.
    >
    > I tried using new line symbol ( \ ) it but it didn't
    worked.
    > set member("textbox").text = "Item 1 " & \ & "
    item 2" & "Item
    > 3" --------->
    > this gave me error
    >
    > Please suggest how to do this thing.
    >
    > Thanks
    > Atul Saxena
    >

  • I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    You are absolutely right.  Thought Enter meant Enter.  I was wrong.  Thank you for the help.
    Rod Rogers, Broker
    Accredited Land Consultant (ALC)
    Metcalf Land Company, Inc.
    Office: 864-585-0444
    Mobile: 864-316-0297
    Fax: 864-583-6000
    <http://www.metcalfland.com> www.metcalfland.com

  • Text box - I hit return and it exits rather than starts a new line or point

    Ok so I'm a very basic user of indesign, and we are still on CS2, but can someone please help with this.   I start a new text box, and type - the wrapping works, but if I want to start a new line or do a bullet list , hitting the return key exits the text box, rather than starting a new line.  I cant find anywhere to alter the formatting.  Have tried resetting to basic paragraph format.

    This is more common on laptops than I would have imagined. If you like having the numlock on, you'll probably want to remap the numpad enter.
    Turn on numlock, then Edit > Keyboard shortcuts... Set the product areae at the top to Type Menu and scroll down to Insert Break Character: Paragraph return. Click in the new shortcut field and hit the numpad enter key, then change the context field from default to text. You'll have to save this as a new custom set and select it for use. Both enter keys should now work with numlock on or off to insert a paragraph break. You can creat a new shortcut for the column break if you like at the same time.

  • How do I stop receiving Mail alerts on the iPad? E.g when browsing Safari a Mail alert box will pop up when I receive a new email. I don't want this alert. Thanks.

    How do I stop receiving Mail alerts on the iPad?
    e.g. When browsing in Safari I will be interrupted by a 'ping' sound and a Mail alert box every time a new email comes in to my Inbox. This is irritating. How do I stop this? To see if I have new Mail I just prefer to go to Mail and my Inbox at convenient intervals.
    Thank you.

    The same way you'd change any notifications: Settings>Notifications>Mail. Change it to "Banner" or "None".

  • Adding a carriage return in an alert box

    Hello
    I have a user request to display this alert box in the format below:
    Attention: The owner name has changed on this vessel.
    Current Name: xxxxxxx:
    New Name : yyyyyyy
    Please confirm or deny that this is an owner change.
    Confirm and Deny are the two buttons.
    How can I insert a c arriage return at the end of each text line so the text looks this way in the alert box? I can get it to wrap but it doesn't look right
    can the 'Confirm' and 'Deny' buttons be set to different colors?
    Thanks!

    Use chr(10).
    For example:
    v_alert := 'Attention: The owner name has changed on this vessel.' || chr(10) || 'Current Name: ' || etc....

  • New-line character in stacked message pop-up

    I have run into a brick wall with this situation--
    Our clients are running Client/Server Forms 6i, and Web Forms 6i using Patch 10. They are about to upgrade web forms to the latest version 9.0.4.1.0 (10g).
    We have a few PLL routines that use the stacked message method:    Message('text here'); Message('  ',no_acknowledge);to display important error messages to the user. It is especially useful to display the multiple ORA- errors when an unexpected server error occurs.
    Throughout all versions of Client/Server forms, and even in our old version of Web forms, I can use chr(10) or another character to start each error message on a new line.
    Somewhere after Patch 10, Oracle has removed that capability. Instead, pop-up stacked messages word-wrap into a multi-line message, and display the new-line character as a box indicating an unprintable character. Our nicely formatted messages are a mess!
    I have been told I should use an alert, which supports chr(10) as the new line. However, this is a PLL routine, and I would have to create an alert in hundreds of forms just to accommodate this short-sightedness. The changes and subsequent testing and release issues make this an unworkable solution.
    I am clueless as to why this feature would be removed. Oracle support is treating it as an enhancement request. Any ideas?

    Steve,
    If you really have hundreeds of forms ... create one more - to display your messages. Make it modal and nice looking. Call it through the library. Design it to work both as [OK] message and as an users responce [Yes]/[No]/[Cancel].
    And honestly - I don't think message(); message() is the best way to display messages. Whoever designed the application should've think about alerts with standartized naming convention, so they can be handled easily through the PLL.
    Venko

  • How to run alert box when document opens

    I am using Acrobat 9 and would like an alert box come up when the document is opened. I have successfully gotten an alert box to pop up using the script below when saving using document actions, but do not know how to make it execute when the document opens. Can anyone tell me how to modify this to add it to Javascript actions so it will run when the document opens? Thank you!
    app.alert("Save your completed form and email as an attachment to [email protected]", 0, 0,)

    It's not a questions of modifying it, but placing it in the right location.
    You need to go to Advanced - Document Processing - Document JavaScripts...
    Then create a new script, clear the contents of the window that opens (the
    function declaration) and paste this line of code instead.
    Save the file and that's it.

  • Distinctive ring vs. new line vs. adding VOIP service like Vonage or Ooma

    I'm currently a FIOS/phone (double play) customer.   I need an additional phone number and am considering my options (getting a new line put in, signing up for a new VOIP service like VOnage, going cheap & just getting distinctive ring), trying to understand everything and weigh the costs/functionality/gotchas.
    "Distinctive Ring" is a new option I just learned about, and it seems the easiest, and definitely the cheapest (around $5 extra a month).   However it also seems the most limited and there are a few things I don't understand for 100%.
    If anyone can answer any of these questions I'd appreciate it:
    - Can you setup SEPERATE voicemail greetings for the existing landline vs. the new "distinctive" ring number?  Or would everyone calling hear the same greeting? 
    - If only same outgoing message can be used, then I assume that each number uses the same voicemailbox, but can you setup different mailboxes for each line in a different way, like having your outgoing message say "Press 1 to leave message for Herman or press 2 to leave message for Granpa", thus create at least quasi-seperate voicemailboxes based on who the person was trying to call?  And if so, how?
    - As I understand it not all phones support "distinctive ring" - so how can I findout which of my existing phones do support this (other than signing up for the service then calling myself and seeing how the phones behave)?
    - Is there any way for my callerID boxes to show which # it is that is being called instead of just who is calling?
    - And is this true, that calling out I would only be placing calls from my original line, that for example on callerid of who I am calling, even if pressing callback on my phone and they called my new second #, they would see my original #, not the new one?
    Thanks for any hints.

    Hi, the only tip I can give you is as far as testing if your phone is compatible with distinctive ring you could try one of two things, neither of which are free unfortunately.
    1) Call a number that is busy and then use Repeat Dial (*66) to let you know when the number is free. You will get a special ringback when the number is no longer busy.
    2) Try dialing *61 on your Verizon landline phone. In many states you will reach a feature called either Priority Call or Selective Distinctive Alert. If you add numbers to the list, when those numbers call you there will be different kinds of special rings on your phone.
    Again, there will be charges on your Verizon bill to do either of these. If you use *61, be sure to clear your list and turn off the feature when you are done so you will not incur any further charges.

  • A new line is showing up on messages I receive. It's seems to be a row of links, including a URL to (maybe) the msg source. How do I get rid of it?

    On my incoming messages, under my toolbars & above the msg header, is a new line. It sort-of looks like another toolbar, but different. It reads from left to right and each word is highlighted white:
    Back Forward Refresh URL: ___________________ Go
    Each of these words except for "URL:" are in boxes as if they are links but they don't work like links.
    What is this and how do I get it off my incoming messages?
    Thanks, nanciewanda

    I have no idea. Perhaps you could post the troubleshooting information so we can have a better look at what is going on.
    Click the Help menu (Alt+H) and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.

  • Javascript alert boxes are wrapped in Windows 7 with IE 8

    I can't count the number of JavaScript alert boxes I have throughout my systems and they have always made the transition between IE browsers from 6 to 8 without a hitch.  Without a hitch until I setup my first Windows 7 machine.  It is a 64 system that has both 32 & 64 bit IE browsers.
    It doesn't matter which of the two versions I use, the JavaScript messages that I have so carefully crafted with just the proper layout are now wrapped.  The resultant text in the new W7 popups is almost unintelligible because it is so badly scrambled/wrapped on the new white background.
    Since an alert box is simplicty itself, there is no way that I can think of to change the inherent size of the box.
    Has anyone else notice this phenomena???   If so, do you have a way around it short of redoing all of the text in the effected boxes???
    Len
    XP machine's JavaScript Alert popup in IE 8
    W7 machine's JavaScript Alert popup in IE 8 with wrapped text

    HMM I have the same problem. My researches suggest that the Zone.Identifier ADS is still being used for the internet zone, but not the Intranet zone. I too can get an intranet location out of IE, but not by querying Zone.Identifier eg using Powershell. This
    issue is present in XP as well as Win 7. It appears to extend to trusted zone ids.
    One hypothesis is that this is being stored in hidden form to prevent zone ids that decrease security being applied by malware.
    I had thought that maybe the intranet zone id was only present during download - but your experiment suggests otherwise.

  • Text in " " on new line

    I making app and i end with this.
    String[] strLabel = { "We are, we are, we are made from broken parts"
                                        , "2", "3", "4", "5", "6" };
    I want to continue on new line, but it must show  like that in richTextBox.

    Hi Jacob,
    Thank you for your post.
    Based on your post, it seems your issue is out of support range of VS General Question forum which mainly discusses the usage issue of Visual Studio IDE such as
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Could you please clarify your issue? Did you want the text:
    We are, we are, we are made from broken parts or all texts in the strlabel array to show on new lines like the format below in a
    text box control in your application?
    We are
    We are
    we are made from broken parts
    or:
    We are, we are, we are made from broken parts
    2
    3
    4
    5
    6
    If yes, it is out of support range. I suggest you to consult on some development forum based on the type of your app such as
    Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If I misunderstood anything, please feel free to let me know.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • BI Publisher Report for Archived OIM tables

    Hi We perfomed Request archival operation in our OIM DB using http://docs.oracle.com/cd/E29505_01/doc.1111/e14308/archival_utilities.htm. Now ARCH* tables are created and it has relevant details. Now our requirment is to create a new report to read d

  • IPhone keeps losing 6 months worth of emails - please help...

    Hi all, My iphone 3GS recently lost about six months worth of emails - I found I had the last three or four mails I received then it jumped back to April (six months ago.)  The emails were still in my Hotmail account when I looked online. At that tim

  • How to collect and split messages in BPM

    Hi, I have two scenarios. In one scenario I have to collect files and send as one file In second scenario I have single file and need to split it into several ones. Pls provide me simple example blogs Regards

  • How to connect windows live email setting

    Please tell me how to "connect windows live email setting".  Thank you.

  • Java for ECC 6.0

    Hi Gurus ,                Kindly give me the download link for java for ECC 6.0 which supported Windows 2003 serevr X64 Edition . Regards selvan