Results 1 to 2 of 2

Thread: Anylink Drop Down Menu manual intervention

  1. #1
    Join Date
    Feb 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Anylink Drop Down Menu manual intervention

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

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

    3) Describe problem: Links in the menu I built into my site stopped working after I had added a PHP based email form.

    I finally found that in the anylinkmenu.js file on line 166, a href attribute was pointing in the wrong direction so I manually changed the href to
    Code:
    http://localhost/site/
    I am using DWCS3 and a testing server with MAMP on my OSX HD, plus uploading into a sub folder on the domain at various intervals.

    Prior to going PHP on the site, initially it was HTML, I had no problems.

    Do I now have to manually change the href on line 166 of the JS file once I upload to a host server? Or have I broken something along the way which can be rectified?

    The current build of the site is here (with the anylinkmenu.js incorrect address left as is):

    http://www.bikramyogafitzroy.com.au/byf_site/index2.php

    Note the site I am building is in the byf_site sub folder, all scripts are at this level too.

    Christo

  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

    localhost
    will not work on a live page unless the viewer's localhost (generally their computer) has that path. It needs to be the actual path of the live installation. From looking at your live page's menu links, that doesn't appear to be an issue (no localhost in them), and as long as the links on the live page work, they may remain as they are.

    Related to this is, as long as you have your entire test site (the one on your machine) within the MAMP folders, localhost shouldn't be required there either. It should only be required for links to pages on your computer that are outside the MAMP folders. However, I'm just going by what happens with the roughly equivalent WAMP server (what I use for that), your results may vary.
    - 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
  •