I think it's a known "limitation".
Could you possibly replace inline handler with an explicit one?

...
new Element(...).observe('change', handler);
...

- kangax

On May 8, 4:06 pm, Mike <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> My team is have an issue using the Prototype DOM builder. For some
> reason, the onchange event isn't being registered for an input box.
>
> $('targetDiv').update(new Element('input',{type:'text', id:'blah',
> onchange:'alert();'}));
>
> When we insert via the .innerHTML parameter, it works just fine. Any
> thoughts? Thanks guys
>
> -Mike
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to