Re: dynamic form problem

Hassan Schroeder
Thu, 24 Sep 2009 22:03:38 -0000

On Thu, Sep 24, 2009 at 2:11 PM, Jedrin
<jrubiando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 ------------------------
hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
twitter: @hassan