Results 1 to 3 of 3

Thread: Drill down menu idea

  1. #1
    Join Date
    Feb 2011
    Posts
    55
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Drill down menu idea

    http://www.dynamicdrive.com/dynamici...lldownmenu.htm


    In using the drill down menu, I have come to find out I can not call a page when there are sub menus. In my case, I would like to have an information page show up when the user clicks on the item before going to the sub menu item.

    www.1littleworld.net/sample

    When you click on "AMC" I want to show an information page about the company. Is that possible to do? Or am I missing something?

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

    Default

    The default action associated with clicking on a category link is canceled by default by the script, to prevent the user from being whisked away to another page when the action should simply be to show additional menu items. With that said, in your case since you're substituting each URL within the menu with a JS call, this concern doesn't pertain to you, so the fix is simply to renable the default action.

    To do this, first, you'll want to add a JS call within the AMC menu item like so:

    Code:
    <div id="drillmenu1" class="drillmenu">
    	<ul>
    		<li><a href="javascript:ajaxpage('AMC.html', 'rightcolumn');">AMC</a>
    			<ul>
    				<li><a href="javascript:ajaxpage('AMC-Rambler.html', 'rightcolumn');">Rambler</a></li>
    				<li><a href="javascript:ajaxpage('ajaxfiles/external2.htm', 'rightcolumn');">Ambassador</a></li>
    
    			</ul>
    		</li>
    	</ul>
    </div>
    Then inside the JS file, find and comment out the below line (addition in red):

    Code:
    			$anchorlink.click(function(e){ //assign click behavior to anchor link
    				thisdrill.slidemenu(jQuery(this).data('control').order)
    				//e.preventDefault()
    			})
    That should do it.
    DD Admin

  3. #3
    Join Date
    Feb 2011
    Posts
    55
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Yes sir. That did the trick. Thanks.

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
  •