2 Replies Latest reply on May 9, 2008 1:14 PM by (Roy_Marshall)

    [JS] Get current page number

      I need to be able to get the page number from a selected block of text. I am trying to use something along these lines, but the page number bit isn't doing it for me:

      mySearch2 = myStory.search("^pChapter "); //this works
      myText = mySearch2[i]; //and this
      myPageNumber = myText.pages.name; //this does not

      Any help would be good thanks!