Announcement

Collapse
No announcement yet.

How to make a tree menu ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to make a tree menu ?

    Can I make a tree menu in Menu studio like ex this one?
    http://web01.microsoft.se/tips/se/

  • #2
    Re: How to make a tree menu ?

    Sure, that tree menhu is javascript, it can be easily inserted directly into your AMS project wia a web browser object. Try it out, you'll see it's pretty easy...

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: How to make a tree menu ?

      It works great but I cant link to anather page in AMS.

      I have testing many combinations in the HTML file ex:
      <a href="#Page.Jump("page2")">Link</a>
      <a href="#page2">Link</a>



      Sure, that tree menhu is javascript, it can be easily inserted directly into your AMS project wia a web browser object. Try it out, you'll see it's pretty easy...

      Comment


      • #4
        Re: How to make a tree menu ?

        Well you just need to get the "URL" property from the web browser OnNavigateFinish and then use that info to guide your page jumps using IF statements.

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: How to make a tree menu ?

          Eh xtreme

          Is there an english version of the link you provided for the tree menu? I am very interested to it but i am having hard time to read that language

          Let me know
          thanks

          Martin

          Comment


          • #6
            Re: How to make a tree menu ?

            Dont understand

            So I need to "write" cod for every link in AMS? Very hard if I have about 100 links in my html file.

            If I write something like this in "On navigate complete", its work but hard to do if I need to do it on every link.

            %myURL% = WebBrowserObject[WebBrowser1].GetProperty ("URL")
            %myURL% = String.Right ("%myURL%", 5)
            IF (%myURL% = "Page2")
            Page.Jump ("Page 2")
            END IF

            Is there any easyer way?


            Well you just need to get the "URL" property from the web browser OnNavigateFinish and then use that info to guide your page jumps using IF statements.

            Comment


            • #7
              Re: How to make a tree menu ?

              Dont know, cant find the same (tips &amp; trix) on http://www.microsoft.com/

              Eh xtreme

              Is there an english version of the link you provided for the tree menu? I am very interested to it but i am having hard time to read that language

              Let me know
              thanks

              Martin

              Comment


              • #8
                Re: How to make a tree menu ?

                If your code will always reference the Page as PageX you should be able to create a loop to check all 100 possible pages.
                %Ctr% = 1
                %myURL% = WebBrowserObject[WebBrowser1].GetProperty ("URL")
                %myURL% = String.Right ("%myURL%", 5)
                While (%Ctr% <= 100)
                IF (%myURL% = "Page%Ctr%")
                Page.Jump ("Page %Ctr%")
                END IF
                %Ctr% = Evaluate(%Ctr% + 1)
                End

                Not exact code, but hopefully it should give you an idea.

                I don't like to write cod(e) when I can have the program do it for me.
                TJ-Tigger
                "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
                "Draco dormiens nunquam titillandus."
                Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

                Comment

                Working...
                X