rubyonrails-core  

[Rails-core] Re: Rails 3 - Javascript/Ajax - date-remote=true

Yehuda Katz
Tue, 26 May 2009 06:50:41 -0700

jQuery is going to be adding support for .live("submit") in the next
release, and it's possible to emulate in rails.jquery.js in the interim.

-- Yehuda

On Tue, May 26, 2009 at 1:07 PM, meefs...@googlemail.com <
meefs...@googlemail.com> wrote:

>
> > $("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
> >
>


-- 
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---