Skip navigation
Nav_alm
Currently Being Moderated

How to access the Text Frame, when we use scrollable frame,

Sep 4, 2012 10:11 PM

Tags: #frame #text #to #how #access #the #scrollable #when #use #we

Hi Friends,

 

How to access the Text Frame, when we use scrollable frame,

 

Thank you,

 

[ Nav ]

 
Replies
  • Currently Being Moderated
    Sep 5, 2012 12:38 AM   in reply to Nav_alm

    @Nav_alm – that it's a bit spartanic what you offer here as a question…

     

    But let's try:
    "Scrollable Frame" indicates DPS, but I don't know what "Text Frame" you want to access.
    Is it INSIDE that "Scrollable Frame"?

     

    If so:

     

    var myTextFrameInside = myScrollableFrame.textFrames[0];
    

     

    would access the FIRST (counting by index) of all text frames inside of the scrollable frame.

     

    Uwe

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 5, 2012 1:11 AM   in reply to Nav_alm

    Did you try my suggestion?

     

    Uwe

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 5, 2012 1:52 AM   in reply to Nav_alm

    That's the same question:
    how can I access something (a page item) on a page…

    Answer: you need something unique in that object you can get a handle on.
    Or you use the selection a user of your script is doing and work with that selection…

     

    A "scrollable frame" is nothing special. What it makes it a "scrollable frame" is the DPS software.
    So you have to look for attached labels on the object, that identify the object for the PDS plug-in "Overlay Creator" as a "scrollable frame". That's possible with the "extractLabel("KeyString")" function. But you need to know the appropriate key-string in advance.

     

    In another of your thread in the DPS forum, I basically answered the question how to obtain those key-strings.

     

    When knowing the key-string you could loop through all your page items (you can skip all text frames) in the allPageItems-collection, to identify the "scrollable frame" by extracting the right label.

     

    If you have more than one "scollable frames" you need a second unique identifier for the particular object.
    That could be nearly any property.

     

    Keep in mind, there is no "scrollableFrames" collection in the DOM !

     

    Uwe

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2012 5:21 AM   in reply to Laubender

    Try AnchorObject under textFrame

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points