Connecting Tech Pros Worldwide Forums | Help | Site Map

Getting 2 errors in IE7 (win xp) for dropdown menu

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 22 '07
I have this page set up: http://dev.ayporchestras.org/index2.php If you mouse over "quicklinks" at the top, you should get a dropdown menu. Works in Firefox, and supposedly in IE6, but not in IE7.

I get "object required" and "dropmenuobj" is null or not an object.

The code comes straight from dynamic drive's "anylink menu", and I did not change anything. I do have two different dropdown menus on the site (main menu works in all platforms). I use SSIs for the header menu, and link to the CSS and JS files.

Any suggestions??

This is urgent and I need to get this site posted by the end of June. I'm heading out of town mid-week next week and need to get it done before then.

Thanks!

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Jan 17 '08

re: Getting 2 errors in IE7 (win xp) for dropdown menu


For anyone facing similar problems, the most likely cause for this is that the script uses browser detection. That is one of the reasons why it should be avoided. Sure you can add support for IE7, but when IE8 comes out, you have to go and fix it again. Use object/feature detection. Check for the support of objects and properties using if statements. See this link.
Reply