Page number to which an XMLElement is associated with

Hello all,
What is the correct syntax for finding the page number to which an
XMLElement is associated with?
var myDoc=app.activeDocument;
var myRootXMLElement = myDoc.xmlElements.item(0);
$.writeln (myRootXMLElement.pageItems.......................//something
here.
I have gone thru the object model, but not able to find a way.
TIA,
--PC

See the below javascript, it will return the page.
var aFrame=<XMLElement>.paragraphs[0].parentTextFrames[0];
aFrame.select();
myPg=getPage(app.selection[0]);
function getPage(theObj)
     if (theObj.constructor.name == "Page") return theObj;
     if (theObj.constructor.name == "Character" || theObj.constructor.name == "Paragraph")
          return getPage(theObj.parentTextFrames[0]);
     if (theObj.constructor.name == "Application")
          // Frame is on an unexpected place...
          alert ("Can't able to find the page");
          exit(0);
     return getPage(theObj.parent);
Arivu.

Similar Messages

  • How do i find which Apple ID is associated with music in my iTunes? When I sync with my iPad and iPhone it tells me I have music, apps etc from more than five IDs. I am asked for PW for a number of now extinct accounts.

    how do i find which Apple ID is associated with music in my iTunes? When I sync with my iPad and iPhone it tells me I have music, apps etc from more than five IDs. I am asked for PW for a number of now extinct accounts.

    Go to Settings/icloud. The Apple ID at the top of the screen is the only one you need to be concerned about. That one MUST be a working ID, and you must know the password for it, or you will be unable to use the phone if it ever crashes, you want to update it, or you want to sell it.

  • How to get the page number that which have page item?

    i used Ilayouttarget .By using the selection target to get page number that which page have item to be.

    i used Ilayouttarget .By using the selection target to get page number that which page have item to be.

  • Is it possible to find which email address is associated with my ipod nano if I look it up by serial number?

    Is it possible to find which email address is associated with my ipod nano if I look it up by serial number?

    Hey koo34,
    You can view your support profile for your Apple ID, including the products associated with it, through the following website:
    Apple - Support - My Support Profile
    https://supportprofile.apple.com
    I would suggest that you try to associate your device with your Apple ID through that site. The following article may have some more helpful information for you regarding this question:
    How to manage your AppleCare products
    http://support.apple.com/kb/HT5686
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • Which Raw Device is associated with which disk group.

    How do i know, which raw device is associated with which disk group.
    select name, header_status, path from v$asm_disk;
    NAME     HEADER_STATUS PATH
    PROD_DATA1_0000     UNKNOWN     /asmdisk/disk1
    PROD_DATA1_0001     UNKNOWN     /asmdisk/disk2
    PROD_FLASH1_0000 UNKNOWN     /asmdisk/disk3
    PROD_FLASH1_0001 UNKNOWN     /asmdisk/disk4
    I mean raw device name is associated with /asmdisk/disk1 ?
    Thanks
    -Prasad

    I am not sure, but it makes me to believe that /asmdisk/disk*s are not really associated with any specific partition on a hard disk but they are merely some type of pseudo partitions or image files created on your / file system. In linux world, you create pseudo partitions/disk image files using losetup command/utility...I am suspecting that these devices are created on your server using similar utility.

  • Pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

    pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

    pages 5.5 output PDF is not have pages number interlinkage ,why?How to deal with?

  • How to identify which role user is associated with?

    Oracle 11.0.1.7:
    How do I identify which role a user is associated with?
    Also how do I identify the privilges for a given role. For eg if SELECT, INSERT, DELETE was granted for a table to a role which dictionary table do I look at?
    I looked at USER_TAB_PRIVS.

    Check this:
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html
    HTH
    -Anantha

  • When I register my iPad 2's serial number, Apple tells me that its associated with another Apple ID

    I RECENTLY realized that I hadn't registered my iPad 2 when I was doing some account maintenance. So I enter the serial number and it comes back with a message saying that my iPad is associated with another Apple ID. What the heck is going on? I bought this brand new from Best Buy and I only have the one Apple ID. Can anyone help me out here?

    Thanks for getting back to me so quickly!
    I neglected to mention that I bought my iPad 2 when they were still new, so this was back in late 2010. I don't think going back to them now would help me out much. But it's kind of scary to think that they would be selling refurbished iPad as new ones.
    I really appreciate the answer though.
    Many thanks!
    ~ todd

  • How to determine which site collection is associated with which db?

    I have a site collection that contains a number of other site collections. I've created a content DB in a new SQL instance, and, within another site collection, specified that DB is associated with a new site collection, eg:
    New-SPContentDatabase "sitecollection9_content" -DatabaseServer "spsqlserver\newinstance" -WebApplication
    http://spintranet
    New-SPSite -url http://intranet/sites/sitecollection9 -ownerAlias "domain\user123" -contentdatabase "sitecollection9_content" -template "STS#1" -Name "sitecollection9"
    I wish to confirm that sitecollection9 is using only newinstance\sitecollection9_content.
    How can I do so?
    Thanks!
    Scott

    Site collection within site collection doesn't exist. you may have different site collection on a WebApplication.
    you can check what is the Database associated with a site collection through powershell
    $site = get-spsite <URL of your site collection>
    $site.ContentDatabase

  • How can i find out which apple ids are associated with my ipad

    When I sync my iPad I get the message that some songs cannot be updated because only 5 Apple IDs can be associated with an iPad. I am aware of three that we use in my family - mine and my two sons. How can I find out what other Apple IDs are associated with my iPad?

    Itunes limit includes computers. 
    http://www.ilounge.com/index.php/articles/comments/managing-devices-in-your-itun es-store-account/

  • I have 2 Apple IDs, 1 associated with all the family devices and the other which has no devices associated with it.  Is there a way to split out the devices between the 2 IDs without losing apps(iPhone) and music (ipod classic)?

    I have 2 Apple IDs.  1 associated with all the family's devices and the other with no devices associated with it.  Is there a way to split out the devices between the 2 IDs without losing Apps (iPhone 4s) or music (iPod classic)?

    i'd be inclined to leave things as they are. Managing app updates over more than one account in the same library or device requires you to sign in and out of each account in turn. You cannot transfer content from one account to another.
    tt2

  • Show which apple id is associated with apps

    Is there a utility or app or something that will show the apple id associated with the apps on the computer? Specifically in the applications folder.
    Thanks!

    No, not to my knowledge.

  • How do I switch which Apple ID is associated with?

    I already know that I need to go into settings and click store to switch the apple ID, but every time I go in there, the button is grayed-out so that I can't click on it. Help?

    That means yo have to go to Settings>General>Restrictions and unset the Restrictions that prevent changing accounts. You have to enter the passcode that was set in order to access Restrictions to make that change.

  • How to create a toggle button which has some id associated with it

    Hi all,
    This is my problem
    <formid><some value in a text box><toggle button>
    here formid is a hidden parameter.
    There can be multiple records of this type...the user can change the text box as well as toggle any record.
    Now im unable to create a toggle button such that it is related to the formid as in when a user toggles between two values i want to be able to link that button with the form id.

    Assign an ID to the button? I don't fully understand the problem either.

  • Page number after printing a text element in SAPScript

    Hello to all,
    is it possible to know the page number in which SAPScript print a text element?
    Thanks and regards
    Franco

    Hi!
    &PAGE& variable gives you the actual page.
    /E MYELEMENT
    /: DEFINE &MYPAGE& = &PAGE&
    I hope it works...
    Regards
    Tamá

Maybe you are looking for