Results 1 to 4 of 4

Thread: IE7/8 Errors with DD Tab Menu

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default IE7/8 Errors with DD Tab Menu

    Script: DD Tab Menu

    http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

    Hi, when using both IE7 & IE8 I am getting the following error;

    Line: 68
    Error: 'document.getElementById(...)' is null or not an object


    In normal browser mode, it shows the exclamation mark but in debug it throws up same error a number of times relating to this line in the javascript file;
    Code:
    var menuitems=document.getElementById(tabid).getElementsByTagName("a")
    My example can be seen here; http://dev.orinovo.net/ddtabs.asp

    Up to now I have had success finding most solutions for small issues with some other scripts by reading other posts and thanks for such a great and valuable resource but I have run into a dead end on this one and would appreciate any help.
    Last edited by Orinovo; 05-15-2009 at 09:58 AM.

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

    Default

    The errors are to be expected, since there's only one menu on your page (ddtabs3), yet you have 5 initialization calls:

    Code:
    <script type="text/javascript">
    //SYNTAX: ddtabmenu.definemenu("tab_menu_id", integer OR "auto")
    ddtabmenu.definemenu("ddtabs1", 0) //initialize Tab Menu #1 with 1st tab selected
    ddtabmenu.definemenu("ddtabs2", 1) //initialize Tab Menu #2 with 2nd tab selected
    ddtabmenu.definemenu("ddtabs3", 1) //initialize Tab Menu #3 with 2nd tab selected
    ddtabmenu.definemenu("ddtabs4", 2) //initialize Tab Menu #4 with 3rd tab selected
    ddtabmenu.definemenu("ddtabs5", -1) //initialize Tab Menu #5 with NO tabs selected (-1)
    
    </script>

    Remove the 4 ones that are not ddtabs3.
    DD Admin

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

    Orinovo (05-14-2009)

  4. #3
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default IE7 CSS Rendering Issue

    Thanks, that worked great. I have another issue now though, with my link above in IE8 the menu systems renders perfect, but in IE7 (IE7 actual browser & IE8 debug tools in IE7 mode) the bottom tabcontainer has moved up and mostly overlays the top block menu.
    On the homepage in my local install this bottom container has a background image so it ends up mostly blocking out the top menu. Other non-IE browsers are fine, it was ok until I removed the <h2>3) Example 3</h2> reference from original sample file.

  5. #4
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Okay, I put some header text back and it works fine, why is this so? see example;

    http://dev.orinovo.net/ddtabs2.asp

    But I do not want header text, so I gave a hack a go to fix it;

    http://dev.orinovo.net/ddtabshack.asp

    but still no luck...anyone help please.

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
  •