Thank you so much, that fixed it.
Why is it that firefox and safari don't need the new constructor?
I guess it is just one of those IE things.

On 7 Oct, 09:30, "T.J. Crowder" <t...@crowdersoftware.com> wrote:
> Hi,
>
> You're calling Element as a function. You want to call it as a
> constructor -- put "new" in front of it, e.g., "new Element(...)".
>
> HTH,
> --
> T.J. Crowder
> Independent Software Consultant
> tj / crowder software / comwww.crowdersoftware.com
>
> On Oct 6, 1:05 pm, BlackEel <dan.til...@gmail.com> wrote:
>
> > Please help me solve this error, works fine in Firefox, JavaScript
> > error in IE 8
>
> > The offending code is:
>
> > for( var prm in params ) {
> >     $('page_form').insert(
> >         Element(
> >             'input',
> >             { 'name': prm, 'type': 'hidden', 'value': params[prm] }
> >         ),
> >         { 'position': 'bottom' }
> >     );
>
> > }
>
> > The error from IE 8 is:
>
> > 'undefined' is null or not an object, prototype.js Line: 1946 Char: 7
> > Code: 0
>
> > I am using Prototype v1.6.1 and the code on line 1946 is part of the
> > Element.insert function:
>
> > childNodes.each(insert.curry(element));
>
> > Thanks for any help in advance!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to