Results 1 to 5 of 5

Thread: Smart Folding Menu W/firefox 1.0.4

  1. #1
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Smart Folding Menu W/firefox 1.0.4

    Smart Folding Menu demo page seems to work fine with IE but not with the Firefox 1.0.4 I just downloaded. Menu on the Smart Folding Menu page doesn't even work in Firefox but does with IE. Firefox reports "folder content has no properties" and points the error to the line "if (foldercontent.style.display=="none"){"

    Any suggestions?

    ::Correction - it does seem to work on the Smart Folding Menu page here on Dynamicdrive but only after I refresh the screen. Still does not work on my test page and I recopied all three sections and even disabled the cookie section...still nothing.
    Last edited by gr8pmkn; 06-14-2005 at 03:24 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I get no error on the demo page with FF1.0.4, no reload needed. Also, your error is odd, probably just a typo though:
    Firefox reports "folder content has no properties"
    is inconsistent with:
    "if (foldercontent.style.display=="none"){"
    Notice the space between folder and content in the first quote and not in the second. Whatever, if you meant it without the space in both, then it would make some sense. Most likely the script is in the wrong part of the document relative to where the html content is or an onload handler isn't being executed at the proper time so,

    PLEASE: Include the URL to your problematic webpage that you want help with.

    Also, I've had trouble in the past using some of these scripts without their 'optional' persistence code. I'd try including it to be sure, rather than excluding it, thinking that will give a 'cleaner' test.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    URL of my site that doesn't seem to work is http://www.chevelleinfo.com. The error is copied and pasted just as highlighted through Tools > Javascript Console, no spaces added or deleted. I do notice it's part of the ns6 check, maybe that's it?

    I've tried it with and without the 'persistence' code. Works fine in IE 6x both ways as well.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, the error at least is as I suspected:

    Error: foldercontent has no properties
    Source File: http://www.chevelleinfo.com/toc.htm
    Line: 49

    with no space. But, that doesn't help us much. The fault lies in the html section, as replacing that with the demo's works fine. I see it, sloppy coding:
    HTML Code:
    <li><a href="body/intro.htm"><font size="1">Intrduction</a></font></li>
    besides misspelling 'Introduction', is wrong, IE will tolerate it but not FF, it should be:
    HTML Code:
    <li><a href="body/intro.htm"><font size="1">Introduction</font></a></li>
    In a nutshell, always close the innermost tag first.

    Don't forget this one:
    HTML Code:
    <li><a href="etr/engines/aircleaner.htm"><font size="1">Air Cleaners</a> (ALL)</font></li>
    as it will be skipped in a global search and replace*.

    Finally, you must close all tags for FF. This means you need one more:
    HTML Code:
    </ul>
    before:
    HTML Code:
    <li><a href="elcamino/main.htm"><font size="1">Place Holder</font></a></li>
    Of course, this means your place holder will show up but, you could comment it out or get rid of it.






    * search for:

    </a></font></li>

    replace with:

    </font></a></li>
    Last edited by jscheuer1; 06-17-2005 at 08:38 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    While I appreciate the coding comments, the misspelling of 'Introduction' as 'Intrduction' would have no effect on whether the word is displayed or not. I'm sure FF will tolerate misspellings in displayed text as well as anyone.

    Searched and replaced tags as you suggested and added missing </ul> seemed to fix the problem.

    Thanks so much!

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
  •