Click to See Complete Forum and Search --> : JS Menu error, only on 1 or 2 pages, HELP PLEASE


iswd1
03-14-2003, 11:00 AM
Ok, here is my issue that I am having, and I hope to god someone out there can help me figure out why it is happening.

My menu uses 2 .js files located in my httpdocs directory. On each webpage, I use the EXACT SAME code to call up the menu and have it displayed. This works great, wonderfully, throughout 95% of the website, but when people go to a few specific pages, I get errors. The code has not changed, the html has not changed at all (the main top portion, only state names, city names have changed) so I cannot figure out why I am getting an error. This is what I get:

Error, line 77
Object does not support property or method

If anyone can answer this, I would be very grateful, to see the page I am talking about click on
www.antiqueshoppingguide.com (http://www.antiqueshoppingguide.com)

and then choose Locate a store, usa, scroll down to Kansas and then pick the first "A" city, and then scroll up to the menu. The portions of the menu that are not drop down work fine, but Contact, Locate a Store do not work and generate the error

What seems the strangest to me is how the code has not changed, the html has not changed, yet it doesn't work, it shouldn't, by all logic, be that way when the rest of the site works fine, should it??

Please leave me a messaage here or email me at iswd@quik.com if you have the answer I need, I am desperate here as this is ruining my site! (Btw, this also does this on a few Alabama pages)

AdamBrill
03-14-2003, 12:38 PM
Well... I tried doing what you said about a half hour ago and it did what you said it would do. But, now it works fine. Did you change anything?? That is really weird... Are there any other ones that aren't working??

iswd1
03-14-2003, 02:24 PM
Well, someone sent me an email and explained what the problem was :) The script itself uses m1 - m5 as variables, and I had <a name="m1"> and m2...etc in my html which was causing the conflict, so I simply renamed it to M1 and M2 and so on and it worked fine ! yay! lol, anyhow, I forgot to post a follow up, but thanks for looking ;D

AdamBrill
03-14-2003, 02:55 PM
Okay... :D I thought it was awfully weird that it fixed itself... LOL