Hi TJ,
Thanks for the response. I've tried what you suggested and now am getting an
IE error message that says 'Function expected'. Any thoughts?
Thanks,
Ben

On Thu, May 13, 2010 at 12:41 PM, T.J. Crowder <t...@crowdersoftware.com>wrote:

> Hi,
>
> On IE, elements are not automatically extended with the Prototype
> syntax sugar. You have to make sure you either get the element from
> Prototype (in which case it will have processed it for you), or pass
> it through $() to add the extensions. More here:
> http://prototypejs.org/learn/extensions
>
> In your case, it's the form that you need to extend, so:
>
> var allCheckboxElements = $(document.forms[0]).getInputs('checkbox');
>
> (I've wrapped `document.forms[0]` in the $() call.)
>
> HTH,
> --
> T.J. Crowder
> Independent Software Consultant
> tj / crowder software / com
> www.crowdersoftware.com
>
>
> On May 13, 5:56 pm, Benjamin Helgeson <ben.w.helge...@gmail.com>
> wrote:
> > Hi, I'm having an issue with IE 6 and 7 in which i'm getting the
> > following error:
> > Object doesn't support this property or method.
> >
> > It's related to this line of code:
> > var allCheckboxElements = document.forms[0].getInputs('checkbox');
> >
> > I get the error alert multiple times if I cut and paste this line
> > other places. It does work in IE 8 and in Firefox.
> >
> > If anyone has any input or suggestions, I'd be appreciative.
> >
> > Thanks!
> > Ben Helgeson
> >
> > --
> > 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-scriptacul...@googlegroups.com.
> > To unsubscribe from this group, send email to
> prototype-scriptaculous+unsubscr...@googlegroups.com<prototype-scriptaculous%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/prototype-scriptaculous?hl=en.
>
> --
> 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-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to
> prototype-scriptaculous+unsubscr...@googlegroups.com<prototype-scriptaculous%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>

-- 
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-scriptacul...@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.

Reply via email to