Results 1 to 5 of 5

Thread: Anylink dropdown menu works offline but not online

  1. #1
    Join Date
    Feb 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Anylink dropdown menu works offline but not online

    1) Script Title: AnyLink JS Drop Down Menu v2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    3) Describe problem: Drop Down Menu works offline but not when the page is loaded online.

    The webpage is http://www.mizbiz.com.au/

    Thank You.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    This link:
    <script type="text/javascript" src="MenuFiles/anylinkmenu.js">
    leads to an error page.
    Make sure the anylink.js file is at the specified location.
    The same goes for the menucontents.js and the anylinkmenu.css

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The vast majority of cases like this involve missing files or incorrect paths. Double check everything and it will probably work. (Note that in cases where one file is missing, others may be as well, such as images, so be sure to check it all, but of course the file that azoomer noticed.)


    Note that online (but not necessarily on all operating systems locally) capitalization does matter. For this reason it is always a good idea to use only lowercase-- 'menufiles' instead of 'MenuFiles'. It's your choice, but it can be confusing and very difficult to notice if you use 'm' instead of 'M' for example.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Feb 2009
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    The problem turned out to be capitalisation of the folder name. Odd how it didn't matter offline. . . . . Thanks for your help guys.

  5. #5
    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

    Seems to be working now. However, this:

    Code:
    <script type="text/javascript">
    //anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
    anylinkmenu.init("menuanchorclass")
    </script>
    appears twice (once in the head, and again near the end of the page) in the source code of the page. Ideally it should only appear once. The instance in the head is sufficient.
    - John
    ________________________

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

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
  •