Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28

Thread: Responsive Side Toggle Menu Enhancements

  1. #11
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    5em was just a random value given as an example. It could be modified, or used within media queries, for each use case.

    No problem about the scrollbar endpoint - that can be fixed with CSS too;
    Code:
    #togglemenu1 { top:5em !important; bottom:0; height:auto }
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  2. #12
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Beverleyh View Post
    5em was just a random value given as an example. It could be modified, or used within media queries, for each use case.
    I know, but it's a fixed value. Now when the navbar (containing large text) displays in smaller windows, it'll take more and more vertical space, and may end up being partially hidden by the menu or partially hiding the menu. Resolving this issue with the help of media queries would force us to use too much breakpoints.
    Quote Originally Posted by Beverleyh View Post
    No problem about the scrollbar endpoint - that can be fixed with CSS too;
    Code:
    #togglemenu1 { top:5em !important; bottom:0; height:auto }
    You're right.

  3. #13
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Resolving this issue with the help of media queries would force us to use too much breakpoints.
    Such is responsive design. Setting media query breakpoint (tweakpoints) when the content *breaks* the layout is recommended practice, so we can just set one when needed. Of course in UXD one would then address the suitability of a heavy populated navbar on mobile - at which point we question and reevaluate the suitability of the navbar (use a different content delivery pattern perhaps) or just show priority navigation, moving secondary navigation elsewhere.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  4. #14
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Beverleyh, I would think that the choice between using css or javascript is a question of coding technique, not a question of user satisfaction.

  5. #15
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Choice of JS or CSS to solve a problem isn't what I was addressing - I raised UXD in reply to your given scenario molendijk;
    Quote Originally Posted by molendijk
    Now when the navbar (containing large text) displays in smaller windows, it'll take more and more vertical space, and may end up being partially hidden by the menu or partially hiding the menu.
    Quote Originally Posted by Beverleyh
    in UXD one would then address the suitability of a heavy populated navbar on mobile - at which point we question and reevaluate the suitability of the navbar (use a different content delivery pattern perhaps) or just show priority navigation, moving secondary navigation elsewhere.
    I hope that clears up any confusion.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  6. #16
    Join Date
    Feb 2013
    Location
    California
    Posts
    86
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    Wow, I surely didn't expect such a simple (for me anyway) issue to cause such a discussion. You are way over my head.

    But... forget for a minute the smaller viewports. Note the home page for my test site http://www.txfannin.org/new-site/ as viewed on a large viewport. Selecting the MORE LINKS option in the top navbar displays my "Side Toggle Menu" which contain all the links to the areas of the site. Note also that three menu items have sub-menus as indicated by the down arrows. Selecting the first menu item with sub-menus displays the sub-menu items as desired. Next, select the second menu item with sub-menus. It too displays the sub-menus (first sub-menu items are still displayed). WAIT... what happened to the third menu item with sub-menus. It is off the screen (unless you have a very tall monitor)!

    It just seems to me (at least in this instance) that if a user is navigating through a site and they select a sub-menu area and decide to then look in another sub-menu area the first area should collapse when the second is selected. If there are five areas and they are all open it would make for a confusing experience (just my thought).

    Again, thanks for your great products and greater support.
    jdadwilson

  7. #17
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    On my machine, the third menu is not visible even if no sub-menu is open.
    There's probably something on your page that prevents the menu from producing a vertical scrollbar.
    Replace
    Code:
    <div id="togglemenu1" class="sidetogglemenu">
    with
    Code:
    <div id="togglemenu1" class="sidetogglemenu" onClick="expandlength = ' '">
    If that doesn't help try
    Code:
    <div id="togglemenu1" class="sidetogglemenu" onClick="expandlength = ' '" style="position: absolute; overflow: auto; ">

  8. #18
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    It just seems to me (at least in this instance) that if a user is navigating through a site and they select a sub-menu area and decide to then look in another sub-menu area the first area should collapse when the second is selected
    This is the behaviour that we should ideally avoid because it takes control away from the user. Manual contraction (the kind your menu currently has) is generally considered more user-friendly because the user stays in control - they can choose when and how they want to navigate - maybe comparing menu items from different sub-menus in order to decide on the most suitable destination.

    I can't comment on your non-scrolling issue that molendijk has identified as I'm stuck on iPhone for now, put you could try to investigate at your side with the developer toolbar - great for troubleshooting - F12 in most common browsers. You would select the side menu container and check to see what styles are being applied/overridden and then you can hopefully counteract them directly.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  9. #19
    Join Date
    Feb 2013
    Location
    California
    Posts
    86
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    The first option does not work. The second option works but has a BAD side effect. A vertical scroll bar is added which allows the page to be scrolled to see the entire menu as desired, BUT when the page is opened a second time a horizontal scroll bar is added thus allowing the scrolling to the right to see the 'hidden' menu.

    jdadwilson

  10. #20
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Then try
    Code:
    <div id="togglemenu1" class="sidetogglemenu" onClick="expandlength = ' '" style="position: absolute; overflow-x: hidden; overflow-y: auto; ">

Similar Threads

  1. Responsive Side Toggle Menu
    By Thin Lizzy in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 11-07-2015, 01:41 PM
  2. DOM errors in Responsive Side Toggle Menu?
    By chas in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-04-2015, 04:08 AM
  3. Custom image for 'Toggle Menu' event in Side Push Menu
    By Neil1 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 05-28-2014, 04:08 PM
  4. Resolved Responsive Side Toggle Menu Reversed
    By adaml_ipa in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 03-25-2014, 07:53 PM
  5. Smooth Navigational Menu (v1.5) want to display as dropline side by side
    By jqdesigner in forum Dynamic Drive scripts help
    Replies: 19
    Last Post: 01-30-2013, 03:35 PM

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
  •