Results 1 to 2 of 2

Thread: ddsmoothmenu sometimes shows 'loading menu'

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ddsmoothmenu sometimes shows 'loading menu'

    1) Script Title:

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

    3) Describe problem:

    I installed the menu on the site 1099fire.com.

    When I go to the home page, or subpages, the menu sometimes
    shows 'Loading menu' and it just doesnt display the menu. I reboot or
    try a different computer and it will probably work, but that 'Loading menu' thing really has me worried that it might be not showing up more often for
    other people as well.

    Has any one experienced this? Did I install it correctly? Is there
    anything I can do to guarantee that it will display? Or display more
    consistently?

    Please, any response any one can give me will be greatly appreciated.

    Sincerely,
    Danielle Brina

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

    Default

    The reason is due to the path you've specified to the external menu page, by using a full absolute URL:

    Code:
    contentsource: ["smoothcontainer", "http://www.1099fire.com/menu/smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
    When users go to http://1099fire.com (without the www), it's treated as a different domain than the "www" version, resulting in an Ajax error. You should either use a relative URL to the webpage, such as:

    Code:
    contentsource: ["smoothcontainer", "menu/smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
    or have JavaScript dynamically write out the domain portion of it:

    Code:
    contentsource: ["smoothcontainer", window.location.hostname+"/menu/smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
    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
  •