Creating link to a page in Rich Text Object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Canter
    Indigo Rose Customer
    • Nov 2007
    • 56

    Creating link to a page in Rich Text Object

    Can anyone tell me how to create a link, within a Rich Text Object, to another AMS page (not to a URL)? For example, I want a Click Here type of link that will cause it to jump to another page.

    Thanks.
  • limboo
    Forum Member
    • May 2008
    • 109

    #2
    Here you go i've used a richtext object and a paragraph because in a paragraph you can use on click (you will see the difference through the colours)
    Attached Files
    Last edited by limboo; 06-22-2008, 02:12 PM.

    Comment

    • Canter
      Indigo Rose Customer
      • Nov 2007
      • 56

      #3
      Thanks - I had already done it in a similar way - using a label - but a paragraph is easier to work with. I gather though it there is no way to do it directly within the RTO.

      Larry

      Comment

      • holtgrewe
        Indigo Rose Customer
        • Jul 2002
        • 779

        #4
        Originally posted by Canter View Post
        Thanks - I had already done it in a similar way - using a label - but a paragraph is easier to work with. I gather though it there is no way to do it directly within the RTO.

        Larry
        Try something like this, I've had success with this method:

        on RT object 'On Selection Change'
        Code:
        clickhere = RichText.GetSelection("RichText1") 
        if clickhere.Start > 6 and clickhere.Start < 11  then
         Page.Jump("Page2")
        end
        Where the description in the RTO = "click here to jump to page2."
        Any click on position 7-10 will jump pages...

        hth

        Comment

        • Dermot
          Indigo Rose Customer
          • Apr 2004
          • 1791

          #5
          That's easy. If set the text of a link to "page 2", then in the On Link event put Page.Jump(e_Link) and it will jump to page 2 when clicked.

          If you don't want to use the actual page names in the text then use.

          Code:
          if e_Link == "sometext" then
              Page.Jump("somepage")
          elseif e_Link == "someothertext" then
              Page.Jump("someotherpage")
          -- and so on...
          end
          Dermot

          I am so out of here :yes

          Comment

          • Dermot
            Indigo Rose Customer
            • Apr 2004
            • 1791

            #6
            Example attached. Links are set in the pages's On Show event.
            Last edited by Dermot; 11-14-2009, 09:33 PM.
            Dermot

            I am so out of here :yes

            Comment

            • holtgrewe
              Indigo Rose Customer
              • Jul 2002
              • 779

              #7
              LMAO - Drat, upstaged again!

              Nice one Dermot - that's a much better approach.

              Comment

              • Canter
                Indigo Rose Customer
                • Nov 2007
                • 56

                #8
                That's great - thanks so much.

                Comment

                • kauster
                  Forum Member
                  • May 2008
                  • 25

                  #9
                  Originally posted by Dermot View Post
                  Example attached. Links are set in the pages's On Show event.
                  I would like to see that example, what happened? , Have deleted?
                  thanks

                  Comment

                  Working...
                  X