PDA

View Full Version : Anylink Drop Down Menu manual intervention



Christo70
03-05-2010, 02:14 PM
1) Script Title: AnyLink JS Drop Down Menu v2.2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.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
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

jscheuer1
03-06-2010, 06:58 AM
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.