.net menu (using css adapter) won't display children in ie7/8

Last post 06-29-2009 1:50 PM by smcintire1981. 1 replies.

Sort Posts:

  • .net menu (using css adapter) won't display children in ie7/8

    06-29-2009, 10:09 AM

     

    We are currently using the .net menu with the css adapter.  The menu works great in IE6.  However, the menu will not display the children in ie7/8.  I am currently trying to change z-index to make it show up (http://blogs.msdn.com/giorgio/archive/2009/02/01/asp-net-menu-and-ie8-rendering-white-issue.aspx).

    setup of site is as following

    (multiple themes and master pages)

    master page

    header.ascx   ---  menu

    content (.aspx)

    footer.ascx

    Thanks for any help!

  • Re: .net menu (using css adapter) won't display children in ie7/8

    06-29-2009, 1:50 PM
    Answer

    When looking @ the examples on the asp.net css adapters home page (browsing the page html) I noticed the page loads a menu.js file.  I dug to the js file and found it would use javascript hover/unhover events for browsers older than IE7.  I took the script and placed it in my page - no problem.  I also borrowed their menu .css to see if that helped.  The menu .css had the same issues on my machine the current .css had (their .css worked fine for their site using my machine - wierd).  I ended up removing the browser version check around the initial hover call and the menu started working.  Additionally, I was able to use my original .css and everything still worked.

    I flipped the logic in the .js around so it only kicks in for browsers newer than ie6.

    Here's a link to the .js file they use: http://www.asp.net/CSSAdapters/JavaScript/MenuAdapter.js


    best of luck!

Page 1 of 1 (2 items)