You could also do $('test-inspector').down('form').submit() On Wed, Jul 16, 2008 at 9:44 AM, Andrew Kaspick <[EMAIL PROTECTED]> wrote: > $$ returns an array... your "error" version is trying to invoke > "submit" on an array. I don't think that's what you want. Your fixed > version looks better. > > On Wed, Jul 16, 2008 at 9:40 AM, Denny <[EMAIL PROTECTED]> wrote: >> >> >> Using Prototype 1.6.0, I recently ran into IE7's "Object does not >> support this property or method" error. After a quick search, I see >> the problem is usually caused by a DOM element that hasn't been >> extended with Prototype's Element.Methods. I don't quite understand >> what was going on in my case and hoping someone can clue me in. >> >> The error was caused by the following line: >> >> $$('#test-inspector form').invoke("submit"); >> >> and I was able to fix the problem by changing it to this: >> >> $$('#test-inspector form')[0].submit(); >> >> I figured $$ would return elements that were properly extended. Is >> that not the case? >> >> Thank you, >> >> Denny Crall >> >> >> >
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---