On Thu, Sep 24, 2009 at 2:11 PM, Jedrin <[email protected]> wrote:

>  Actually, the problem with re rendering the form and setting the
> focus is knowing what the focus was before observe_form sent the
> request to the server. The most obvious hack way is to keep the form
> values in a session and see which one changed since the last time.

I'd think the most obvious would be to have each focus() event save
the target element's id to a single global variable, and use that value
to reset the focus afterwards.

Just a thought.
-- 
Hassan Schroeder ------------------------ [email protected]
twitter: @hassan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to