Make sure that this object is extended by Prototype before you ask for any of the Prototype goodies. IE has this habit of not following the prototype chain (small p prototype, that is) up to find the methods that Prototype puts there. If you modify your code thusly:
if( ! $(form['dobyear']).getValue... you will have no more error, because the first thing that happens is that Prototype will extend the raw object reference (because it was wrapped in the dollar function), turning it into a full-featured inheritor of all the goodies in all supported browsers. Walter On Jul 28, 2009, at 12:41 PM, Andy Daykin wrote: > Hello, I have a form http://spanglerdesign.com/test/glucocard/enrollment.php > , and when I hit the submit button in ie7 and below, I get an error > message saying "Object doesn't support this property or method". I > have tried versions 1.6.1 rc3, and 1.6.0.3. > > It breaks on the line: > if(!form['dobyear'].getValue().match(/^(\d{4})?$/)) { > > The script is working fine in all other browsers, including ie8. > What can I do to fix this? > > Thanks, > > -Andy Daykin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---