Results 1 to 2 of 2

Thread: IE7 Bug with Simple Tree Menu

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

    Default IE7 Bug with Simple Tree Menu

    1) Script Title: Simple Tree Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate1.htm

    3) Describe problem: Hi, first of all, great tree!!! I'm not too familiar with scripting, so I'm having a bit of a trouble fixing the following 2 issues (1 bug, 1 question).

    1. When I run the tree menu file in IE7, I get the following prompt:

    Runtime error

    Error: 'document.geElementByID(...)' is null or not an object

    I dismiss the prompt and it works fine, but it's annoying that it'll appear everytime the file loads. I haven't modified the script and files at all, so everything is still as instructed. Please advice.

    2. What defines the white space before the entire tree? The "Expand All | Collapse All" links will show up against the edge of the window, but the tree starts out already indented about 40 or 50px from the left. Where can I edit to adjust that space (move the entire tree closer to the left)?

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

    Default

    Regarding #1, since the script on the DD demo page does work correctly with no error prompts in IE7, it should be something specific to your page. Please post a link to the page on your site that contains the problematic script so we can check it out.

    Regarding #2, there are other ways like always in CSS, but one method to remove the overall indentation would be to add the following rule to the default .css file of the script:

    Code:
    .treeview{
    position: relative;
    left: -40px;
    }
    DD Admin

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
  •