13 Replies Latest reply on Apr 25, 2008 6:56 AM by CFedarko

    Bookmarks inside Drop Down Text

    CFedarko Level 1
      I inserted a bookmark within a drop down text box, and then linked another topic to that bookmark. However, if you generate and try to click on that link, it takes you to the main page where the drop down is located, not into the opened "version" of the drop down.

      Is there some way to make it automatically open that drop down text?

      Thanks!
        • 1. Re: Bookmarks inside Drop Down Text
          RoboColum(n) Level 5
          This has come up before. The problem with dropdowns is that they are designed to be clicked so if you have a bookmark inside a dropdown, the page loads and expects a click to reveal the dropdown. I'm not sure if there is a work around but you could try searching through the forum archives.
          • 2. Re: Bookmarks inside Drop Down Text
            Peter Grainge Adobe Community Professional (Moderator)
            There's an article on my site covering this. Brief reply, travelling.

            • 3. Re: Bookmarks inside Drop Down Text
              CFedarko Level 1
              Peter,

              Your site looks like it has exactly what I need - if I knew exactly what to do with it. My html experience is limited - although it is increasing with the use of RH 7, it seems.

              Can you give me a bit more detail?

              For example, where do I put that code - at that top, or does it matter?

              Do I copy the entire piece into each target document - for each target dropdown, or just an additional "// function" line for each one?

              I realize you are traveling, and may not respond in detail quickly - but, I do appreciate your help!
              • 4. Re: Bookmarks inside Drop Down Text
                Level 2
                I don't want to try to explain the details of Peter's method but if you found it and it works the way you want here is a bit of general advice:

                Right click on the working page and select View Source. The whole source code will pop up in Notepad. This is a great way to see how other people have implemented a feature you'd like to try.

                I looked at what Peter had and it is good because the topics have little extraneous material so you can get right down to the essential functions.

                Good luck with it. I suspect Peter can give you more help when he returns..

                John
                • 5. Re: Bookmarks inside Drop Down Text
                  Peter Grainge Adobe Community Professional (Moderator)
                  CFedarko

                  Post back if not solved yet.

                  • 6. Re: Bookmarks inside Drop Down Text
                    CFedarko Level 1
                    (Third attempt to post...)

                    Peter,

                    I got a slightly different version of the code to work within RH7, when I click on the "View Selected Items" icon - however, once generated the topics didn't match up any longer.

                    (Trying to copy the code here, since the other way seems to blow out my post everytime.)

                    Thank you!

                    Christi

                    <script type="text/javascript" language=JavaScript1.2>

                    var arrayofDivs = document.all.tags("DIV");
                    var arrayofSpans = document.all.tags("SPAN");

                    function showEmMark(n) {
                    arrayofDivs[n].style.display = "block";
                    }

                    if (window.location.hash.substring(1)=="FA Business Rules Drop Down"){
                    setTimeout('showEmMark(0)',500);
                    }
                    if (window.location.hash.substring(1)=="Create_FA"){
                    setTimeout('showEmMark(1)',500);
                    }
                    if (window.location.hash.substring(1)=="Search"){
                    setTimeout('showEmMark(2)',500);
                    }
                    if (window.location.hash.substring(1)=="Review"){
                    setTimeout('showEmMark(3)',500);
                    }
                    if (window.location.hash.substring(1)=="FA_Status_Change"){
                    setTimeout('showEmMark(4)',500);
                    }
                    if (window.location.hash.substring(1)=="Reschedule_FA"){
                    setTimeout('showEmMark(5)',500);
                    }
                    if (window.location.hash.substring(1)=="Print"){
                    setTimeout('showEmMark(6)',500);
                    }
                    if (window.location.hash.substring(1)=="Create_FA"){
                    setTimeout('showEmMark(7)',500);
                    }
                    </script>

                    • 7. Re: Bookmarks inside Drop Down Text
                      CFedarko Level 1
                      Just FYI - I am finding the same issue, if I use your exact script as well.
                      • 8. Re: Bookmarks inside Drop Down Text
                        Peter Grainge Adobe Community Professional (Moderator)
                        Set up a small project using my script, check it is still not working, zip it up and send it to me via my site.

                        Set out the steps to see the problem and include a link to this thread.

                        • 9. Re: Bookmarks inside Drop Down Text
                          CFedarko Level 1
                          Peter,

                          Sent winzip file. Thank you for your extra help on this!

                          Christi
                          • 10. Re: Bookmarks inside Drop Down Text
                            CFedarko Level 1
                            Peter,

                            Sent winzip file. Thank you for your extra help on this!

                            Christi
                            • 11. Re: Bookmarks inside Drop Down Text
                              CFedarko Level 1
                              The code works within RH7 - "View Selected Item" however it seems when generating, the code is stripped from the main topic. This is based upon Peter's review of my "small project" created to test.

                              Any ideas?
                              • 12. Re: Bookmarks inside Drop Down Text
                                Peter Grainge Adobe Community Professional (Moderator)
                                Why ask here and in another new post?

                                For other's the code is being stripped because it was in the wrong part of the file.

                                • 13. Re: Bookmarks inside Drop Down Text
                                  CFedarko Level 1
                                  Peter,

                                  I had put it in a separate question - just because it was a different topic. I hadn't gotten your second email, for some reason Spam captured that one. I have moved the script inside of the <head></head> area and it now works after tweaking the placement of which bookmark was where.

                                  I appreciate all of your help on this issue!

                                  Christi