Skip navigation
Currently Being Moderated

Identify a pageitem with a hyperlink

Dec 25, 2011 8:49 PM

Tags: #hyperlink #pageitem

Hello All,


I need to find a way so that i could identify if a selected pageitem has a hyperlink on it. I have not been able to find a property or method on the pageitem that shows whether it has a hyperlink on it or not.


One possible way i found, was to get the list of hyperlinksources from the document, get their source and match it with the selection but i think there should be a better way as this would require me to look into the list for every single item in the selection. I have been able to do this through C++ sdk, so i suppose there must be a way in javascript for this too.


Kindly point me in the right direction.


Manan Joshi.

  • Currently Being Moderated
    Dec 26, 2011 2:44 AM   in reply to Manan Joshi

    PageItems do not have hyperlinks. Text has hyperlinks.


    You can make a PageItem a button if that's what you are referring to...


    You don't give enough details to know what you are after...



    Mark as:
  • Currently Being Moderated
    Dec 26, 2011 4:48 AM   in reply to Manan Joshi

    I'm sorry. You're right. I got mixed up between sources and destinations.


    Either way, you can only discover hyperlink sources by looping through the document hyperlink sources and comparing them against your object(s).


    BTW, I just now noticed that they added a findHyperlinks() method to Text in CS5...



    Mark as:
  • Currently Being Moderated
    Dec 26, 2011 5:26 AM   in reply to Harbs.

    (OT: I also noticed 'findTransliterate' in Text methods -- anyone any idea what that's about?)

    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