> $("a[data-remote=true]").live("click", ...), which does not bind to every > link, but rather tests click events to see whether they match the event in > question.
Yes, good point :) Makes sense using .live() here, especially for Ajax responses. But as .live() doesn't support bindings on the onSubmit event currently there could be a problem with forms that are submitted via the return key? This is why I thought that you, at least for forms, would use the traditional submit event, which would require a DOM scan (and unfortunately for each new DOM elements updated via Ajax, too). Christian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---