Adding new line and sapaces in between the text in AI Script

areaText.contents = "This is an Area Text in a rectangle. See how it flows to the next line.";
i want to break the sentance from 'Text' ie i want to add new line in between and also some more spaces can any one plz help
for example
I want to write the above text like this way
this is an Area
Text in a rectangle.   See
    how it       flows to the
next line  

that's a much better explanation, you didn't have to create another thread, you could have replied to my reply in the original thread.
we use the "\r" character to insert a new line and we can use "\t" to insert a "tab" for the spaces, or the actual spaces in a variable
var sixSpaces = "      ";
areaText.contents = "This is an Area\rText in a rectangle." + sixSpaces + "See\r" + sixSpaces + "how it" + sixSpaces + "flows to the\rnext line.";

Similar Messages

  • I created a Custom list New Form and need to make the text fields read only

    When I use SharePoint Designer and add the read only attribute  to the  SharePoint form field, then it throws  a web part error.
    but here is the thing, I have current user Filters populating the Form Fields. So the form fields  populate First name , last name etc. and I need these fields read-only....
    the Client doesn t want the end user to Change those fields.  Is there any way to "LOCK" the form fields?
    As I have only 7 text fields that need to be locked down. and one field is a signature line that is a true input field.. where the  user has to inter their initials.
    Any ideas? as I have tried most of the items available thru searches nothing works, or it throws that web part error message.
    Steve Athey

    Daniel: ( I'm now at work, a different ID is logged on for me)
    I used SharePoint Designer.
    Steps:
     created a web part page
    then on the SharePoint Designer ribbon I then went to insert:
    new item form
    Then I selected my data source (list)
    then I placed the 8 columns on the page
    a page viewer web part to pull the manual that people have to read.
    and 7 current user filter webparts. (1 for each form field) Yes it is over kill, but I'm trying to keep this straight out of box as much as possible...
    then for the form fields
    I added a parameter and the read only tag see below in bold:
    <asp:TextBox runat="server" text="{$ParamEmployID}" id="ff17{$Pos}" __designer:bind="{ddwrt:DataBind('i',concat('ff17',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Employee_x0020_ID')}" 
    ReadOnly="True" />
    I also  added the parameters in the ribbon area
    the error message doesn't tell me much, it just send me to web part maintenance page... 
    if I removed the  ReadOnly = True then the error  goes away.....   So I was trying to find a  quick simple  JQuery and or javascript   code item that would  make  the 7 text fields readonly and leave the
    8th  text field alone  to allow people to place their initials on the page to say that they read the manual.
    I have  created hundreds of these types of pages .. this is the first time I have run into this issue, but it also the first time I have tried to use the ReadOnly = True item.
    Any Ideas  and or thought on how to make the  items read only? and not throw the error.
    Steve

  • Cut/paste text in a new TextFrame, and place it on the text original position

    With this script, the pagraphs with style "_DESTACADOS" are cut and paste in a new TextFrame, but place them in to first page. I need place it on the text original position...
    var myDocument = app.activeDocument;
    var myRegExp = ".+";
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = "_DESTACADOS";
    app.findGrepPreferences.findWhat = myRegExp;
    var myFoundItems = myDocument.findGrep(true);
    if(myFoundItems.length != 0){
          for(var myCounter = 0; myCounter < myFoundItems.length; myCounter ++){
              myFoundItem = myFoundItems[myCounter];
              myX1 = myFoundItem.characters.item(0).horizontalOffset;
              myY1 = myFoundItem.characters.item(0).baseline;
              myX2 = myX1 + 50;
              myY2 = myY1 + 50;
                app.selection = myFoundItem;
                    app.cut();
                myTextFrame = myDocument.textFrames.add();
                myTextFrame.geometricBounds = [myY1, myX1, myY2, myX2];
                app.selection = myTextFrame.insertionPoints[0];
                    app.paste(); // Pega el texto del caso encontrado
                myTextFrame.applyObjectStyle(app.activeDocument.objectStyles.item("_Destacados"), true);           
                myTextFrame.fit(FitOptions.FRAME_TO_CONTENT);
    THANKS...

    Hi Marcos Suárez,
                 If you've xml for the indesign document, u can use the following.
    myElement.placeIntoInlineFrame(["8p","6p1"]);
    I hope this code is useful in ur script.
    #include "glue code.jsx"
    var doc = app.activeDocument;
    var myRuleSet = new Array ( new idd)
              with(doc)
                        var elements = xmlElements;
                        __processRuleSet(elements.item(0), myRuleSet)
    function idd()
        var newstyle=doc.objectStyles.add("ObjectStyle1");
        newstyle.appliedParagraphStyle="Ap3";
        newstyle.strokeColor="None";
        newstyle.fillColor="None";
              this.name = "idd"
              this.xpath = "//title/p2"                    //set this xpath value to the xmltree element which u want to set into frame.
              this.apply = function(myElement, myRuleProcessor)
            var txt=myElement.placeIntoInlineFrame(["8p","6p1"]);
            txt.fit(FitOptions.frameToContent);
            txt.applyObjectStyle(newstyle, true);
      return true;
    This will create a textframe around the selected content which u want to do so...
    For more info, refer XMLElement.placeIntoInlineFrame() in Object Model Viewer....
    With Regards,
    Vel.

  • Added new line and want to exchange phone...how to get replacement

    We added a third line to our family plan. I chose a phone that my MIL did not care for so we followed instructions provided in the package and sent it back. Now I need to get a replacement and have no idea how. Every time I call customer service I can't get a straight answer. We tried to exchange the phone in a store but they wouldn't do that. I am paying for a third line with no phone to use. Anyone know how I can order a replacement phone? My account info online still shows the original phone with the eligibility to upgrade in two years.
    Thanks.

    It appears then, that the original phone is still "activated" on that line - has your account been credited with the price of the phone? Do you have another Verizon phone (a used one of yours perhaps?) you could activate on that line temporarily?
    If you have a tracking number, be sure the returned phone was received and credited - then you should be able to purchase another to replace it. You can always purchase from ebay, or use a friends' phone or one of your old ones on the line....

  • Adding New Field and Passing Values Between Screens

    In the Oracle Projects Create Project screen, I've been asked to add a new LOV for Organization (LOV copied from a subsequent page) - and then pass the selected value to the next page and default in the value based on the selection on the first page.
    I understand I'll be modifying the first page's XML to add the new LOV, but how can I get the second page to recognize the value selected on the first page? Do I need to pass this as a parameter?
    Thanks in advance for your help!

    Thanks - I understand that the CO should not be extended, and other posts in this forum mention that the AM should not be extended either.
    What is the recommended extension path in a scenario like the one I describe above (adding a field to a seeded page and trying to pass it to the second page)?
    Sorry for all the questions - I couldn't find this scenario described elsewhere in the forums!

  • Removing new lines and carriage returns

    Hi,
    SO I am new to regular expressions in java and I want to remove all the new lines and carriage returns from some text, and change them into <p>
    I have tried,
    Pattern pat = Pattern.compile("\n");
    Matcher mat = pat.matcher(text);
    StringBuffer sb = new StringBuffer();
    boolean result = mat.find();
    while (result){
    mat.appendReplacement(sb,"<p>");
    result = mat.find();
    mat.appendTail(sb);
    text=sb.toString();
    But it seems to have no effect. Anyone know what I'm doing wrong?
    Cheers
    Sandra

    Hello, i've got the same problem. I want to replace "carriage return" and "new line" from an text file. and i use the replace all function for a String object. The problem is, if i call the replace function like this:
    row = row.replaceAll ("\\r", "<p>");
    The "carriage return" is replaced, but not with the "<p>" characters, only with nothing.
    Lines from my original textfile:
    This is an example.
    I want to replace.
    After replacing with the function call row = row.replaceAll ("\\r", "<p>");
    This is an example.I want to replace.
    What is wrong. If i insert tab spaces and replace them, everything is fine. it is abug in my Java Version?
    I use j2re1.4.2_05
    I hope, anybody can help me

  • How to provide space and new line to the text in AI Script

    how to provide space and new line to the text in AI Script

    ?? can you explain better, can you at least add another sentence?
    space
    var mySpace = " ";
    new line
    var newLine = "\n";

  • After mail was moved to iCloud on jan 1, my mail app emails received have 23 lines of "routing info" between the address and the message. How can I get rid of this info?

    After my mail was moved to iCloud, my mail app emails received have 23 lines of "routing data between the address and the message how can Imget rid of this "data"?

    Found the answer a Mail>preferances>Viewing>Show header detail. Changed it to Default.

  • I am trying to link coc between a new ipod and my iPad. The iPad was the old device. I did as I was supposed to by logging in the Game Center, then opening coc, and went thru the tutorial. The Game Center keeps trying to load the new village on my iPad an

    I am trying to link coc between a new ipod and my iPad. The iPad was the old device. I did as I was supposed to by logging in the Game Center, then opening coc, and went thru the tutorial. The Game Center keeps trying to load the new village on my iPad and not the other way around. It basically is trying to make my old village the new village, meaning I lose a lot of progress. How do make it combine the 2? If I cannot, is there a way to remove the new village off the Game Center and add the one I want to be saved? Thank you.

    You'll have to contact the app developer for help with this.

  • I had the icloud account changed on the iPad (have added new ID and deleted old one). However when updating/downloading , it still asks for password to the previous account...?

    I’m giving my ipad to my sister and I had the icloud account changed. I have added new ID and deleted the old one. However when updating and downloading apps, it still asks for password to the previous account. Does anyone know how to fix this? Thanks very much!

    Maybe you should set it up as new device again:
    How to back up your data and set up as a new device
    Apps are tied to the Apple ID they were bought with and can not be shared with other devices that have a different Apple ID.

  • I have the new ipad and when I stretch the screen a horizontal line appears when I scroll whatever page or location I am on. The line is not there if the screen is minimised. Any solutions?

    I have the new ipad and when I stretch the screen a horizontal line appears when I scroll whatever page or location I am on. The line is not there if the screen is minimised. Any solutions?

    I can't personally as I never really liked nor used the picture frame feature in iPad.  Just search in the App Store and read customer reviews and you'll likely find something you'll like.

  • It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is

    It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is there some simple setting out there that will just "make it so?"@

    The video I am watching this guy is just dragging every line to make curves.  And every anchor point is a corner.  He is not switching back and forth between the pen and the anchor points tool, and he is not using the convert points tool.  He draws a curved line and starts another straight line only to curve it with a click and a drag.  It is super efficient, and I could save a world of time if I could figure out what he is doing.

  • When i compose a new message and am typing in the name of the person to send it to it says iMessage after their name but when i click it says "Bonjour (offline) "  my bonjour account isn't even enabled!? and it all used to work fine

    When i compose a new message and am typing in the name of the person to send it to it says iMessage after their name but when i click it says "Bonjour (offline) "  my bonjour account isn't even enabled!? and it all used to work fine please help!

    Hi,
    I invoked New Mesage
    I typed a Name in Manually (rather than using the blue + icon)
    I clicked on the "to" name and got this
    Uploaded with Skitch!
    I don't get a Bonjour Option here.
    I do get a Jabber ID showing up for them but for soem reason it does not list my "From" account.
    I would say that I have seen multiple "To"s and the same for the "From" choices and I think I have seen the Bonjour one listed.
    However the "To" And "From"s don't seem to match and it appears you can iMessage Jabber names/ID or Jabber AIM names (which you can't in either case)
    10:06 PM      Thursday; March 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Deploying new portal and its effect on the old desktop

    I have an application which has few .portal files which are then converted to desktop in production through admin portal.
    Now i changed my source code and create a new ear file and deploy it in the prod environment.
    1) What will be the effect of the new deployment and changed codebase for the underlying .portal file on the old desktop created.
    2) Do i need to create the desktop again everytime i deploy a new update ear file?
    3) what if i dont update?
    Any documentation pointing the specific exact anwers to above questions.
    Thanks

    When you say changed code base do you mean you have added /removed books /pages? If so these wont be picked up by the deploy
    1) None , deployment does not affect the desktop created.
    2)No , you only need to modify the desktop if you want your changes to be picked or if you want to make changes manually.
    However your best bet is to use propagation to make the changes
    http://e-docs.bea.com/wlp/docs102/prodOps/propTool.html
    even if you create a new desktop based on a .portal which has changed , then you are prompted what you want to do, and you can decide accordingly (e.g. choosing replace affects the already created desktop)
    http://e-docs.bea.com/wlp/docs102/portals/creating_staging.html#wp1014475
    Its easier to test out the changes on a staging server and propagate the changes once your sure everything works. Note that so far propagation has never worked correctly all the time so backup everything (including the embedded LDAP)
    3) No Book/Page changes are picked up
    Note these answers apply to portal 8.1. they may have changed in whatever version you use. read the propagation documents on edocs
    regards
    deepak

  • I have a PowerPC G4, 1.5 Ghz, with 1.5 GB of ram. Currently running OSX 10.4.11.  Can I upgrade to 10.5.8 (or higher)?  Need to load new software and said that was the minumum requirement.

    I have a PowerPC G4, 1.5 Ghz, with 1.5 GB of ram.
    Currently running OSX 10.4.11. 
    Question: Can I upgrade to 10.5.8 (or higher)?  Need to load new software and said that was the minumum requirement was 10.5.8
    Thanks, WPC-2012

    Mac OS X 10.5 Leopard installation system requirements
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
    If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
    MB427Z/A  Leopard 10.5.1 install DVD
    MB576Z/A  Leopard 10.5.4 install DVD
    MB021Z/A  Leopard 10.5.6 install DVD (single user)
    MB022Z/A  Leopard 10.5.6 install DVD (5-user family pack)
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
    The DVD should look like this
    Caution - Leopard does not support classic mode. So, if you currently open OS 9 apps in classic mode, you won't be able to do this if you upgrade to Leopard.
     Cheers, Tom

Maybe you are looking for

  • Xfinity no longer works for me

    I have been using Comcast (Xfinity) email for a long time with Firefox. A few days ago it quit working in that it would go to the Inbox Preview, and that is all, no matter what else I clicked. I now have to go use IE to get my e-mail. It will go to h

  • Drag and Drop in custom components..

    hello friends, I am trying to devlop a schedule component. on part of this i trying to develop a functionality where the user can reschedure the appointment by drag and drop.  the dragdrop event in the container component is not triggered when ther u

  • Won't stay asleep!

    As of a few days ago, my MacBook Pro doens't want to stay asleep. Everytime I've closed my machine and left it for a while, when I come back it's burning hot. I open it and it is having some weird problems with the screen lock (doesn't give me the pa

  • CSS DW cs3

    Hi Any One! How do I export style code from a DW document in Dreamweaver CS3?

  • Apex Tomcat server is not running

    oracle version :10g apex Version :4.0 OS :unix 1.database server is working 2.apex server down 3.we increased tablespaces 4.checked locked account also. every thing fine . but we cannot able to access server we are receving message unable to found se