Results 1 to 6 of 6

Thread: Bullet List Menu Help

  1. #1
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Bullet List Menu Help

    1) Script Title: Bullet List Accordion Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...m?expandable=2

    3) I am wondering if someone might be able to help me out with a problem I am having with the Bullet List Menu. I am trying to get the expandable headers to open a link in a second frame on the site I am working on but have only been able to get it to open in its own frame.

    I have the same js files and have set the revealtype to click. Here is the area of code I am working on which is inside the arrowlistmenu div:


    HTML Code:
    <li><a class="expandable" href="title.html" target="mainFrame">Title Page</a>
      <ul class="categoryitems" style="margin-left: 15px">
      <li><a href="into.html" target="mainFrame">Introduction</a></li>
      <li><a href="chapt1.html" target="mainFrame">Chapter 1</a></li>
      </ul></li>
    The only problem I am having is at the Title Page. Any help is greatly appreciated!

    <")))><

  2. #2
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I didn't mention this earlier but it might give a hint to what is going on.

    I've also tried to use other targets on the link such as "_blank" which do not change the effect. All links will only open from here in the same windo and/or frame.

    Thanks again.

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, there's the link inside each header, then there are the links inside the sub menu area being expanded/contracted:

    Code:
    <li><a class="expandable" href="title.html" target="mainFrame">Title Page</a>
      <ul class="categoryitems" style="margin-left: 15px">
      <li><a href="into.html" target="mainFrame">Introduction</a></li>
      <li><a href="chapt1.html" target="mainFrame">Chapter 1</a></li>
      </ul></li>
    At a glance "Title Page" above would be the header link in your case. Are you trying to get both types of links to open in a specific frame? The script doesn't touch the links in the sub menu area at all, so specifying a target by itself should do the trick already. For the header link, it's a little different, but I'll wait for your response on what you're trying to do first.
    DD Admin

  4. #4
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hey DD!

    What you have described is exactly what I am trying to do. I want the header link to open in a specified frame as well as the sub menu area. We have a fix now using "onclick" and "window.open" (I think) but it is a little long and complicated. I do not have it with me at this moment but will try to get that line of code in here tomorrow.

    Thanks for any additional help!

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I assume you're getting the header link to respond at all by setting the revealtype setting to "goto", correct? With that pre-requisite, inside the .js file, find the following lines:

    Code:
    setTimeout(function(){location=targetLink.href}, 200)
    which by default just loads the target page in the same browser window. To alter it so the page is loaded in another frame, you can change the above to something like:

    Code:
    setTimeout(function(){window.frames['framename'].location=targetLink.href}, 200)
    Where "framename" is the name of the frame you want to target.

    Edit: Fixed an error in the sample code
    Last edited by ddadmin; 04-24-2009 at 07:35 PM.
    DD Admin

  6. The Following User Says Thank You to ddadmin For This Useful Post:

    Fisher (04-24-2009)

  7. #6
    Join Date
    Apr 2009
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks! I will see if that makes things easier. I had it working with the reavealtype set to "click" and where I need it to load the frame I have added:

    Code:
    onClick="window.open('title.html', 'mainFrame')">
    Thanks again for your assistance!

    Keith

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •