Object Doesn’t Support this property or method

Posted by Dustin on March 17, 2009 under Javascript, Web Development, ie | Read the First Comment

object-doesnt-support-this-property-or-method

Just a quick post to spread more love about IE. Occasionally I run into an error on IE (who doesn’t) that boggles my mind, like reading toaster directions when they throw in the verticle concept. Anyhow this particular one I’ve seen before but not sure I’ve ever known what causes it. I tried to click a submit button that when clicked is supposed to run some validation on the form. Works great in FF2 and 3 but not so much in IE, instead I get this error “Object Doesn’t Support this property or method” then it attempts to give me a line and character number to look at but it’s way off (as you may have guessed). So I googled this baby and the first post I read on it was the helpful-est. so I’ll link to it for you pleasure but also give you the quick and dirty (too late). basically this happens if one of your js functions has the same name as one of your HTML ID’s or it can also happen if a JS variable has the same name as a Form Element name which was what was happening in my case. Easy fix just change the name of one or the other and your all set.

Here is the post