CS6 javascript - textBox.contents does not return the full text

I use script tags to find the text of a certain tag boxes and get their content. Sometimes I'm not all of the content. Is that all that I should check to find my error? It's the js that I use:

myDoc var = app.activeDocument;

var myPageItems = myDoc.allPageItems;

for (var i = 0; i < myPageItems.length; i ++)

{

If (myPageItems [i] .label == "carpet details colors 1")

{

var myOverFlowFrame = myPageItems [i];

if(myOverFlowFrame.Overflows==true)

{

var fullText = myOverFlowFrame.contents + ";

Alert (fullText);

}

}

}

I don't have much experience scripts against InDesign and would appreciate any help I could get. Is there a better way than .silence for the text in a text box? Is there an obvious reason why it would fail to retrieve all of the text in some cases?

Post edited by: rockymcclamrock (removed irrelevant code)

Hello

You can get the full text using the content of the TextFrame ParentStory,

var fullText = myOverFlowFrame.parentStory.contents + ";

Thank you

Tags: InDesign

Similar Questions

  • PC Windows 7 does not return the document or the printed page

    I had a setting for this in XP control but can't find the page, that I got it.

    This occurs in AN application, or a browser.  I print from a workbook Excel specific, for example, when I have a number of them opens.  The system does not return the workbook that I printed.  It's maddening and causes all sorts of questions.  Searching the Web for this instant product nothing and I know I can't be the only person who saw this.

    It is a platform of Windows 7 in a commercial network environment.  I use the snap Menu Addintools classic because I can't stand the Ribbon and never loved.  In Windows 7, I run a couple of other supplements that restore the XP the taskbar properly use, so you can work efficiently.

    None of the supplements are causing this problem because I was running the same classic Menu Add-in in the XP box and he had the same problem until I found workaround that I don't remember now.

    Everyone knows about this problem?

    Jeff Lynch

    Hello Jeff,.

    Please contact the Microsoft community.

    As the Windows 7 computer is under the corporate network environment, the issue that you are facing is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forum.

    https://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro&filter=AllTypes&sort=lastpostdesc

    Hope the information above has been a useful answer, Mercia back to us if you respect them more.

  • By clicking on the address bar or search bar and typing does not erase the previous text inside

    When I click on the address bar or search bar and start typing a new entry, it does not erase the previous text. I always have to remove it first to clear the field and then I can type in the new URL or keyword...

    OK, I found the search the on: configuration database. The problem is that browser.urlbar.clickSelects.All is set to "false". I changed it to "true" and now everything is perfect...

    Also to solve the same problem with the search bar, I changed browser.search.context.loadInBackground from false to true.

  • How to print a selection of an image in photoshop CC, I have problems because in the print window does not display the full image and the printed only a section of what I SELECTED

    How to print a selection of an image in photoshop CC, I have problems because in the print window does not display the full image and the printed only a section of what I SELECTED

    Hi jodepepevalentin,

    In the print menu, check "scale to fit media" under the Position and size of the device and then check out.

    If you want the area selected for printing, check "Print selected area" under the Position and size and specify the size.

    Kind regards

    Claes

  • OnImmediateValueChanged cursor does not update the label text by dragging.

    Consider the following:

    Container {
            layout: DockLayout {}
            Label {
                id: label
                textStyle.base: SystemDefaults.TextStyles.BigText
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
            }
    
            Slider {
                fromValue: 0
                toValue: 59
                value: 0
                 onImmediateValueChanged: {
                     label.text = value;
                 }
            }
        }
    

    When you drag the cursor, it does not update the text of the label smoothly. How can I achieve this?

    Found the solution!

    By mistake I used the value parameter and not immediateValue in the onImmediateValueChanged function!

  • With Firefox 9.0.1 an application using a JavaScript confirm command does not display the message. Blocker is disabled for the domain of the application.

    Application is written in php and javascript. Clicking a button triggers a javascript confirm dialogue. Since upgrading to Firefox 9.0.1 confirmation dialog box does not appear. Trainer first set to allow the full domain of the application, then off altogether. JavaScript is enabled.

    It turns out that Firefox has become a little more picky about the standards that IE. (Imagine that!) Code created the entries of type = 'text' hidden, then calls a javascript function and the values passed in the entries hidden as parameters. The original code just pass the name of the entry as a variable. Then, the Firefox console complained that the variable was not declared. Once I spent the variable.value, then the error disappeared, Firefox has been happy, does not break IE, so I'm happy.

  • Re: Internet browser does not have the full content of the page

    Hello

    Have a Satellite L300 laptop. Problems with opening the pages of website. I use Vista.
    When I try to open Internet pages pages explore does not bring to the high content full screen is full of information, but the content is not.
    Say yes they is 20 items on a web page, it displays 10. tried my ISP and they told me to reset the Explorer but has not fixed they deliver siad it is something to do with the computer.

    Then a hlp with that?
    It would be great if you could.

    A BIG thank you in advance.

    To be honest I don't understand what the problem is here.
    Can you send us the screenshot?
    Is IE zoomed maybe?

  • Table of contents does not on the page

    Hello

    I'm working on single-level TOC. I created a table of contents style.

    However, after inserting the table of contents (by clicking 'Ok'), I get the following message:

    1.PNG

    I'm not sure what this means. And if I click on 'Yes', I get the following message:

    2.PNG

    Yet once again, im not sure why I see this message, because there is no existing table of contents. When you click on 'OK' I do not see a busy cursor and there is no visible TOC on the page.

    ID appreciate your help.

    Thank you

    Ashim

    Overset text indicates that you have a text in one or several images which does not appear anywhere in a document. Double-click the red light at the bottom of the document window to open the preflight Panel. Click on the triangles to expose problems. This file has two instances of overset text. Click on the page number on the far right access to one of the examples of problem:

    Overset text icon is one more red in the lower right of the frame.

    There was no place to make this framework any longer, so I've added columns and now all the text fits. A port to clear signals the end of the document. The preflight panel shows now only remaining error, I would set the same way.

    The table of contents can generate very well with overset text, both positions are visible. But you're not finished with the layout until you have solved all the problems of overset text, InDesign tries to help by alerting you of the situation.

  • Table of contents does not include the Section prefix

    The pages of this document in particular has a section prefix 'A', so the pages are numbered as well: a-1, A-2, A-3, etc.

    When I run a Table of contents, the table of contents is generated without the prefix, as the following section:

    Section 1... 1

    Section 2... 5

    Section 3... 9


    Is there a way, or something I'm missing from the table of contents is generated as follows:

    ... Section 1 a-1

    Section 2... A-5

    Section 3... A-9


    CS6, TIA


    Discovered the problem. When the numbering, I thought that I had actually created a section prefix. I have not, I just typed in the 'A' before the current Page marker.

  • Oracle query of relay and access function call does not return the list

    Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.

    I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?

    The application of relay and looks like this

    Select * from fn_testvalues of the double

    Once that is running in oracle.

    To create the test table and 2 functions below.

    CREATE TABLE t_values (MyValue varchar2 (10));

    Table created
    INSERT INTO t_values)
    SELECT 'Merced' c1 FROM dual UNION ALL
    SELECT "Pixie" dual UNION ALL
    SELECT "452" DOUBLE);

    3 lines inserted
    FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
    n_val NUMBER;
    BEGIN
    n_val: = to_number (p_val);
    RETURN 1;
    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END;
    /

    Feature created

    table test:
    SELECT val, isnum fn_isnum (MyValue)
    OF t_values;

    VAL ISNUM
    ---------- ----------
    Merced 0
    Pixie 0
    1 452

    Now the function that is called in the application of relay:

    create or replace function fn_testvalues
    sys_refcursor is back
    RC sys_refcursor;
    Start
    Open rc for
    Select t_values.*, fn_isnum (MyValue) t_values IsNum;
    Return (RC);

    end fn_testvalues;

    Why not?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>create or replace view bb
      2  as
      3    select *
      4    from emp;
    
    View created.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from bb;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30 SALESMAN
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20 ANALYST
          7839 KING       PRESIDENT            17-NOV-81       7260                    10 PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20 CLERK
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30 CLERK
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10 CLERK
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
             1 boock
    
    12 rows selected.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select *
      2  from bb
      3  where empno = &eno;
    Enter value for eno: 7521
    old   3: where empno = &eno
    new   3: where empno = 7521
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

  • Key to the left of the URL does not return the Save password.

    I read a lot of discussions and pages on Firefox recording not passwords. I do not have 'private browsing '. I have cookies and history recorded "until they expire". I checked "save passwords". I don't have any exceptions.

    When I go to enter a password, no small window opens asking me to save it. However, a little _does_ keys appear. But the key is grayed out and clicking on it does nothing. This isn't 'show' password saver.

    I disabled all add-ons, restarted and tried again. It was always the same. The sites are those that work perfectly on my desktop computer, but not on my laptop. The laptop is one that won't save passwords.

    It's a Samsung running Windows 7.

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • Call.phoneNumber () does not return the phone number

    I try to use the new method Call.phoneNumber () which was introduced in 10.3:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__system__phone__call.html?f=call#FUNCT...

    Even if I added the permission of read_phonecall_details according to the documentation, I'm still not received the phone number of outgoing calls placed on the device. The call to Call.phoneNumber () returns an empty string.

    I use the Simulator to 10.3 (10.3.0.698) with Momentics 2.1 and placing me calls using the controller.

    Someone managed to get the phone number? Any ideas on how to make this work would be appreciated.

    It is a known problem in the Simulator, but works fine on a real device.  The bug appeared in Issue Tracker here: Call.phoneNumber () always returns a null in the Simulator

  • % ROWCOUNT SQL does not return the expected result

    I have the following function within a package:

    --Update APPERY_JTI_deleted_USERS table:
    FUNCTION fn_updt_app_jti_dlt_usr(
        p_update_co      IN VARCHAR2,
        p_appery_user_id IN APPERY_JTI_deleted_USERS.appery_user_id%TYPE,
        p_outlet_code    IN APPERY_JTI_deleted_USERS.outlet_code%TYPE)
      RETURN NUMBER
    AS
    lv_sql       VARCHAR2(4000);
    lv_rowcount  NUMBER := 0;
    BEGIN
    
    lv_sql := 'UPDATE APPERY_JTI_deleted_USERS SET '||p_update_co||' = 1 WHERE '||p_update_co||' = 0 AND OUTLET_CODE = '''||p_outlet_code||''' AND APPERY_USER_ID = '''||p_appery_user_id||'''';
    
    --EXECUTE IMMEDIATE lv_sql;
    EXECUTE IMMEDIATE 'BEGIN ' || lv_sql || '; :z := sql%rowcount; END; ' USING OUT lv_rowcount ;
    
    RETURN lv_rowcount;
      
    EXCEPTION
    WHEN OTHERS THEN
      RETURN -1;  
    END fn_updt_app_jti_dlt_usr;
    
    

    The function called several times as part of a job. Basically, the main function (Say M), call a few functions (for example A1... A9). Each of these functions is to do something and updated the application using the above function. Therefore, each of the nine functions will call the above function with different parameters.

    The problem that I am facing is:

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same. I'm really confused, what Miss me here.

    I don't know if this is relevant. But for what it's worth, invoking the function above updates the SAME lines in the table appery_jti_deleted_users that the columns are different. So for all the work, the same lines need to be updated. Each function (A1... A9) will call the above function to update a different column of these lines.

    If you REALLY want to help you having US SHOW, not tell us:

    1. WHAT you do

    2. HOW to

    3. WHAT results you get

    4. WHAT results you expect to get

    First run, invoke only first of all for the above function will return the positive result ($sql rowcount > 0). When I run M the second time, only first and second calls for the above function will be to return positive results and so on.

    How odd, it's that if I change the values again and run a function M, it will start from the beginning. And what strange more, the dynamic update statement is executed correctly and data are updated successfully. It's just sql rowcount % do not return is not the expected results.

    Perhaps that the foregoing is true and maybe he's not. We have NO WAY of knowing because you don't SHOW US anything.

    I tried to run execute immediately without (begin, end). I also tried to run it without HELP ON. It's always the same.

    Yet once you showed us NOTHING >

    You do NOT FOLLOW best practices when you use dynamic sql statements: the sql statement real so that you can print:

    1 SEE what's running - make sure there are no syntax errors, and it seems to be what you wanted

    2 EXECUTE/TEST manually - to see if he really runs without error and see what results it really give.

    3. FIX any syntax or other problems and retest it

    Instrument properly your code and you won't have the problems you are having.

    You should know by now what are the parameters are transmitted when you run the function. So, there are at least three sets of these parameters.

    So you should be able to:

    1 run the instrumented manually function three times

    2. see that all three SQL statements are

    3 manually run these instructions

    4. see that the number of lines is after each execution

    We have no idea of what the output of the function is every time you call it. Apparently, you have, if you save the results of the function somewhere, but you didn't post any of this info.

    We need real details to help you - just listen to your story is not enough.

  • Case in SQL condition does not return the values as expected

    Hello gurus of PL/SQL,.

    SELECT amd.brkr_nm, amd.brkr_sym, AMD.MINORITY_FLG, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
    WHEN atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY - CASE THEN
    WHEN AMD BOX. MINORITY_FLG = 'Y' THEN
    CASE WHEN atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY THEN 'Done' ELSE 'InDirected.
    END
    ANOTHER "NA".
    END
    ELSE ' 0'
    END
    AS Direction_Method
    Of
    alloc_tran_det_fact atdf,
    ACCESS_METHOD_DIM AMD

    But it returns me the 0 value in the Direction_Method field. But when I checked the values in DB then my first condition (atdf.COMM_BRKR_DIM_KEY = AMD.ACCESS_METHOD_DIM_KEY)
    second condition (AMD. MINORITY_FLG = 'Y') and third (atdf.EXEC_BRKR_DIM_KEY = atdf.COMM_BRKR_DIM_KEY) condition of all them have passed, then it should show the value as indicated, but it is shwoing the '0' value only in the Direction_Method column.

    Kindly help me.. .am I missing something?
    I use Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production. I can't create the test data in the database, I did not have the required privileges to make :(

    Kindly help me, thnanks in advance for your time and your comments

    Published by: user555994 on May 24, 2012 02:00

    could be a space or case (upper or lower case). Try:

    /* Formatted on 2012/05/24 16:00 (Formatter Plus v4.8.8) */
    SELECT amd.brkr_nm, amd.brkr_sym, amd.minority_flg, atdf.comm_brkr_dim_key, atdf.exec_brkr_dim_key,
           CASE
             WHEN trim(upper(atdf.comm_brkr_dim_key)) = trim(upper(amd.access_method_dim_key))
               THEN CASE
                     WHEN trim(upper(amd.minority_flg)) = 'Y'
                       THEN CASE
                             WHEN trim(upper(atdf.exec_brkr_dim_key)) = trim(upper(atdf.comm_brkr_dim_key))
                               THEN 'Directed'
                             ELSE 'InDirected'
                           END
                     ELSE 'NA'
                   END
             ELSE '0'
           END AS direction_method
      FROM alloc_tran_det_fact atdf, access_method_dim amd
    
  • Saving as a single .html does not include the full web page (with images and properly formatted) as it did before! What happened here?

    First of all I must emphasize that I keep always up-to-date as soon as a new version of Firefox will appear.

    Now, a few months ago Firefox was able to save complete web pages as a single .htm file (including images and styles). Proof of this is that I have done it then. But now, after a few Firefox updates (sorry, but I can't identify exactly which of them might have been the one that messed up for me), while he was trying to exactly the same thing on the same website it is no longer possible. What happens is that now to choose the option 'Save the Web as HTML' (which I think is that I used to select before) it will not save the images and styles of web page, only the basic text and the home page anchors while he primarily save!

    I still have the old .htm files, I saved before (I can give them to you) and they work again properly on any PC (I tested), so it means that it is not a .htm file using the cache on my PC to render the images links to the file.

    I am aware that I can choose the 'Full page' option, but it creates a folder that I don't want to, so I'd rather have the old option to export the web page in a unique and properly shaped file that includes images!

    Thanks in advance!

Maybe you are looking for

  • Junk mail problems

    Emails from my father (even if it is on my VIP list) always appear in my Inbox of spam rather then my Inbox, which means that I am not notified of them and often don't see them until they have lost their relevance. It's a pain to have to always check

  • 'Lost' lock screen Notifications

    It's my fault, I know, but my iPhone (SE) opening with a fingerprint is very convenient. However, I used to press the button of the homescreen with a registered finger to turn it on. It works fine but recently, several times I saw a past notification

  • controling printing resolution

    EPSON R3000 Epson matte paper presentation When this document is selected in the choice of high resolution that a print dialog box is given. I'm printing a poster 11 x 17 and a lower resolution to save $. What is the best way?

  • HP monthly Diagnostic Tool - Runs slow and eventually hold endless.

    The Daiagnostic HP of end of month on a HE - 210Y Pavilion 64 bit Win7 works extremely slow and finally stops at the end of 63%.  No other programs are running.  Had to cancel because of the stall.  No test failure wasn't indication for the part that

  • Acquisition of analog camera field.

    I'm trying to shoot maximum performance of my analog camera. I have a capture card 1405 and the camera is monochrome RS 170 NTSC. In time real LV 2009 SP1. Unfortunately, I have to use to track movement and there is no way at this point to upgrade th