Hello, I've a function which is called trough an click-event (defined with Event.observe) on an input-element within a form.
Within this function I do this: ------------ var element = Event.element(e); var params = element.form.serialize(true); ------------ This doesn't work in Opera and Safari (in IE and Firefox it works just fine) Opera throws this error: ~~~~ Event thread: click Error: name: TypeError message: Statement on line 3924: Type mismatch (usually a non-object value used where an object is required) Backtrace: Line 3924 of linked script posting.js var params = element.form.serialize(true); At unknown location [statement source code not available] ~~~~ With the following change it works in in Opera and Safari, too. ------------ var element = Event.element(e); var params = $(element.form).serialize(true); ------------ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---