Script with text boxes that must be compiled together

Hello guys, I am new in the Adobe community. I do a jsx file to obtain their diploma.

To complete this file, it must perform an operation such as the html file shown below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title></title>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
 function Repeat(source,target){
 source.form[target].value=source.value;
}
/*]]>*/
</script></head>
 <body>
<form >
<input type="text"  onkeyup="Repeat(this,'fred');"   onblur="Repeat(this,'fred');" />
<input name="fred" type="text"  />
</form>
</body>
 </html>

With two text boxes in a jsx file, as follows, for Illustrator CS5:

#target illustrator
//#targetengine session
 var ppage= app.documents.add(DocumentColorSpace.RGB,600,300);
 var area_1 = ppage.pathItems.rectangle( 250, 10, 200, 100);
 var content_1= ppage.textFrames.areaText(area_1);
 content_1.paragraphs.add("first");
 var area_2 = ppage.pathItems.rectangle( 250, 300, 200, 100);
 var content_2=  ppage.textFrames.areaText(area_2);
 content_2.paragraphs.add("second");

Someone can / know help me?

Thank you all!

Any suggestion will be appreciated!

(SORRY FOR THE BAD ENGLISH, I'M ITALIAN)

Salve, devo realizzare UN file jsx, by the laurea.

Per completare questo file, esso deve does one ' operation simile al html file posted by sotto:

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN".

    " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.DTD "> "

" < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".

< head >

< title > < / title >

< script language = "JavaScript" type = "text/javascript" >

/ * < ! [CDATA [* /]]

function Repeat (source, target) {}

source. Form [target]. Value = source. Value;

}

/*]]>*/

< /script > < / head >

< body >

< form >

< input type = "text" onkeyup = "Repeat (this, 'fred'); "onblur ="REPEAT (This, 'fred'); "/ >

< input name = "fred" type = "text" / >

< / make >

< / body >

< / html >

Con due caselle di testo, come segue, by Illustrator CS5:

#target illustrator

#targetengine session

pPage var = app.documents.add (DocumentColorSpace.RGB, 600, 300);

var area_1 = ppage.pathItems.rectangle (250, 10, 200, 100);

var content_1 = ppage.textFrames.areaText (area_1);

content_1.paragraphs.Add ("First");

var area_2 = ppage.pathItems.rectangle (250, 300, 200, 100);

var content_2 = ppage.textFrames.areaText (area_2);

content_2.paragraphs.Add ("second");

Qualcuno Può / her help?

Grazie infinite a tutti!

Although I'm not CarlosCanto

try adding these lines:

var input = prompt("For both textareas","input");
content_1.contents = content_2.contents = input;

alert("done");

(But I do not know if I understand you right.)

Tags: Illustrator

Similar Questions

  • A Text box that is easy to use with no size limit!

    I would like to know if anyone has the code for a text box that is easy to use in that the user can enter, for example, a story, they wrote and have a small toolbar with the Bold Italic and Underline attributes as well as a small camera to upload a photo if necessary. This box, after recorded text can also be moved anywhere on a web page by the user, for example page has three columns and they can left-click on it and drag and drop.

    I use Dreamweaver CS4 can be any type of code

    Thank you

    This is something that you should program into your site and not something that Dreamweaver automatically.

    The sounds of your text box, you need a script RTE (Rich Text Editor).  CKEditor is a perfect example of this for PHP Web based: http://ckeditor.com/ .

    For drag / drop, you can find a good example in the Widget browser ( http://labs.adobe.com/technologies/widgetbrowser/ ).  The only problem with that is that it requires it to be on a HTML5 document.  There is also a movable example in the JQuery UI ( http://jqueryui.com/demos/draggable/ ).

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions?

    Is it possible to create a form with text boxes of "adjustment" to the participants to answer the questions? Questions are open to everyone, so asking narrative responses.

    Hi landon39843319,

    You can have fields flowing / more dynamic in a PDF of LiveCycle Designer form, but not in an AcroForm (only created in Acrobat).  LiveCycle Designer is a program completely separated used for are delivered with each purchase Acrobat Acrobat XI has been release.  Now you must buy separately.  But LiveCycle Designer PDF forms are wrapped in a shell of PDF so that they will be displayed and can be filled in the free Acrobat Reader DC and earlier versions.

    If you do this in Acrobat with an AcroForm, you have as much information typed into a field that the user wants, but he's going to show everything on the screen.  Displays only the text that fits into the field, then a + sign will appear in the field to indicate that there is more text in this field, you can scroll down to read.  You can also set the automatic font size so that as more text is entered in the police becoming smaller and smaller to adjust the text, but that is usually not desirable for many forms.

    Hope this helps,

    Dimitri

    WindJack Solutions

    www.pdfscripting.com

  • How can I activate the spell for a text box that is just a line, for example submitted by e-mail?

    In an earlier version of Firefox, I found a site somewhere that told me what to do to turn on spell checking for text boxes that are just a line. I'm used to be able to send an e-mail with a subject that was not a misspelling. Now, it does not work. Please tell me how I can activate it once again. I'm on a Mac using Firefox 6.0.2. Thank you!

    See:

    You can set the pref layout.spellcheckDefault to 2 on the topic: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences you can restore the default value or change via the context menu.
  • Delete pages with empty text boxes that are threaded

    I tried the program and the forum and that you do not see the answer to what is probably a simple question.

    First the bottom -.

    I get files InDesign 100 + pages created with boxes of text block. I have change for a bigger and the text moves with the largest areas of text, everything as I want it.

    The problem now is, I have a lot of empty pages with empty text in them block boxes. When I try to delete the pages in the menu layout by selecting all empty it won't make more than one! (Because of the block of text boxes, I think.) There is often more than 100 when I'm through with my changes.

    Now the question-

    How can I easily get rid of the excess pages quickly?

    Thank you for your help

    Personally, I would not go the script. Course of thread should not affect the ability to remove any image and drilled it now which is threaded will cause just a nightmare on the road.

    That said, you should be able to open the pages Panel and select 'empty' pages at the same time by clicking on the first, then now Shift on the last. Then click on the trash bin icon. It is likely that you will get a warning indicating that the pages are not empty (they should have empty blocks of text on them). At this time it's OK to say go ahead and delete anyway. If you are worried, make a copy of the doc and do about it.

    If you are unable to get these pages to be deleted, it probably means that Smart Text Reflow is at work, so check if you have enabled delete empty pages in the preferences, or turn off completely. In the stop-coincidence one of these pages actually contained text put on to your pages, you will see an indicator of excess some hand (probably the last picture), then place the cursor at the end of their coaching to excess and press Ctrl (CMD on Mac) + Y to open the story editor and look to see what is actually in excess. If it is important, such as a table, for example, you need to understand why he was invisible (post another topic)., otherwise, select and then delete.

    If you are not able to delete several pages after messing around with the Smart Text Reflow settings, try replacing your preferences and check again the smart text reflow settings, and then try again.

  • Annoying problem with text boxes

    I want to create a text box with the white fill color and black text. The entire box is an opacity of 0% in normal mode and in overturning it would be 64%. Everything works correctly if the text font is Helvetica for example. But if it's Chin (what I want) it does not at all. The box is an opacity of 100% in all modes. Then I turn it on in Helvetica and it works very well... again. No other changes (!) Now, I really want to know what is happening with that.

    Corbel is a web font or a font for the Web. This is why it must be converted into an image when released.

  • Master pages with text boxes

    Hey,.

    I would have thought it would be easy to find, but I can't seem to.

    I have a master page and you want to have an empty text box in the same place for a new page is created each time. When I do that on the master page, of course the text box is not on the newly created page, I must just be missing something?

    Do you use the master with the text block? What makes you think he isn't here?

    Text blocks master really designed to arise text, which replaces automatically. If you want to type or paste the text in there you need to override their first manually.

    Hold down the Shift-Ctrl/Cmd and click on the frame to substitute it.

  • Tables with text boxes

    Hi I'm new to Flash and trying to output number, I put in the text boxes with a button.

    My code so far:

    var myArray: Array = new Array();
    
    
    myArray.push(Number(textbox1.text))
    myArray.push(Number(textbox2.text))
    myArray.push(Number(textbox3.text))
    
    button1.addEventListener(
      MouseEvent.MOUSE_UP,
      function(evt:MouseEvent):void {
        trace(myArray);
      }
    );
    

    I did 3 text boxes and a button, I run the present, and when I've entered information in these text boxes and click the poster 0,0,0 as it does not read the numbers that I entered in the text box.

    Any thoughts?

    Thank you in advance x

    A table will be fine if you need a place to store the values, but you must wait until the text boxes have values.  You can create in your button code, assuming that the button gets clicked after entries are made...

    var MonTableau: Array = new Array();
      
    function mUp(evt:MouseEvent):void {}

    myArray.push (Number (textbox1.text));
    myArray.push (Number (textbox2.text));
    myArray.push (Number (textbox3.text));
    trace (myArray);
    }

    Button1.addEventListener (MouseEvent.MOUSE_UP, mUp);

    Another way, you could do this is to add event listeners to the extfields.  If you add an Event Listener. CHANGE you can have the same function used for all three textfields...

    var MonTableau: Array;

    function addToArray(evt:Event):void {}

    myArray = [];

    myArray.push (Number (textbox1.text));
    myArray.push (Number (textbox2.text));
    myArray.push (Number (textbox3.text));

    }

    textBox1.addEventListener (Event.CHANGE, addToArray);

    TextBox2.addEventListener (Event.CHANGE, addToArray);

    TextBox3.addEventListener (Event.CHANGE, addToArray);

    function mUp(evt:MouseEvent):void {}

    trace (myArray);
    }

    Button1.addEventListener (MouseEvent.MOUSE_UP, mUp);

  • Help with text boxes

    Can I have a text box in a form that could be developed to adapt the content and thus to push the rest of the form down and possibly on another page? If it's gibberish, sorry example, if, after the section: 'Equipment will be used' he could go line 1 or 2 pages, but the rest of the form must retain the format? that is, footers and all other notes below the expansion box and could continue to page numbers?

    Shaun

    Try the following steps to test...

    Copy the data file (expand.xml) to a folder
    Launch of LiveCycle Designer ARE and open the form ExpandField.pdf
    Select the range of "Data View" and right-click on "DataConnection.
    Select "properties of the connection.
    Click "next".
    Navigate to the location where you saved the file 'expand.xml'.
    Click on "Finish".

    In addition, confirm the following...

    File > form > overview > view Type > interactive form

    To display the form with the data, select the tab 'Preview PDF'

    Concerning

    Steve

  • Please help with text boxes

    Can someone help me wit hmy problem. I have a Fisher with plenty of tables in it, some cells of the table are text boxes, or at least they were when I developed it. Now I need to modify some cells and for some reason I can't do because the cell is not a text box, but became (untitled < draw >) I can't change its return type to the text. Can someone advise what to do whitouh retype the text again in the new cell.

    Thanks in advance

    Hello

    Looks like the cell has lost its identity. I'd be inclined to objects in the name that you develop the form because it makes the script easier and less likely for LC/Acrobat to become confused.

    All I can suggest is that you select a good cell and then click the XML Source tab select the 'good' XML from ... to... . Then paste this in the XML for the damaged cell.

    Word of warning, tinkering in the XML Source tab can severely hurt your form - work on a preliminary version!

    If it works, rename each object (certainly within lines) to unique names.

    Good luck

    N.

  • How to set up an editable text box that can be controlled by master pages

    I am designing a book. I created a master page to the first page of each chapter. I also need the text box content to be in a different size. So I tried including a blank text box in the master. That's when I met a problem - to place text, I have to manually replace the text box on the first page (Page of chapter) making a page element... the following pages have no problem however, as the son of text in the main text boxes. Now when I want to change the size or formatting of this text box, I can no longer use the master and have to manually apply to each chapter of this.

    Is there a better way to do it. I'm on a deadline, a quick response would be appreciated.

    Thanks in advance.

    -International

    After that you override the master element on the page, it retains aspects on the page of the document that you do not change. So, if you change the size or geometry of the image on the page of the document, change the master page will have no effect. If all you have to do is out of the text frame to fill it with the type, you can still control its size and position through the frame of the master page. If you do need to change size every time you release and add text, I am not aware so as to always be driven from the master page.

  • I'm setting up a website, but I have a problem: I need a scrolling text box that can contain images and text please help?

    I create a flash site, but I need a text box or something else that can contain text and images. Help, please?

    You can use a scrollpane component. Simply create a movieclip with some content you want scrolling, set the ID of this movieclip binding and set the contentPath of the scollpane to this connection ID.

  • RH2015 problem with text box placed remaining in Place on the Image

    Using RH2015 I find a text box placed over an image and set a trigger of the text in the content to the top of the image page to display / hide the (effect) positioned text box when you click on. The issue I see is that the text box is not positioned compared to the image on which are superimposed. Is the placement of a text box positioned compared to the outbreak, in this case, rather than the image you like? I use a reagent HTML5 output would therefore have a solution that would elapse from the position of the image and the changes in scale, remaining anchored.

    Hello

    What is the ultimate goal? Click on the image and see the text?

    I ask because there may be a better way to achieve the goal.

    Personally, I have never had anything but bad using positioned text boxes.

    See you soon... Rick

Maybe you are looking for

  • flashing light on device

    My camera won't allow iPhone or ipad to a wireless connection. but the macbook is connected. It also flashes...

  • Satellite A660/07U - problem install the nVidia for Win 7 64 bit driver

    A660/07U Windows 7 64 bit At first, I need to install this driver because apparently it will solve a problem with the current driver that is causing the computer freezes when booting with an external monitor as main display. I downloaded the Setup fi

  • Digital photography portrait style engraved on cd does not appear on the TV.

    Digital photos of the portrait model on my Photos then burned to CD is not displayed on the TV. The following message is placed on the screen ' cannot display the image. There is no corresponding data or data is corrupted. Press next to display the n

  • How is iTunes on an X220i act with an external DVD burner

    I have a Lenovo X220i and that you just bought a Lenovo Slim USB Portable DVD Burner, who has not yet arrived. Now I wonder how iTunes will react when I attach the external DVD writer. ITunes will be able to read CDs normally and to burn CDs as it wo

  • Computer, stop and press back through web pages.

    My computer turns off without warning and goes straight to a white screen and the "no signal"message." At the beginning it was all playing games online (basic Bigfish Facebook stuff), but now it stopped just after turn on.If I use internet explorer,