Nevermind. It was related to a CSS declaration that read:
input:focus
{
border-style: inset;
}
So that focus was staying on the submit button after the request was
sent.
On Jun 6, 9:30 am, cnantais
<cnant...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a form that uses Ajax.Updater as it''s onSubmit action. This
> updates a div with search results. When the submit button is clicked,
> it stays down (in the depressed state) well after the Ajax call has
> updated the search results div. Any idea how to make this button
> "unstuck" once the Ajax request completes?
>
> Here''s the code for the form page:
>
> <form id="basic_search_form" onsubmit="new
Ajax.Updater(''my_div'', ''/
> transactions/update_my_div'', {asynchronous:true, evalScripts:true,
> parameters:Form.serialize(this)}); return false;"
method="post"
> action="/transactions/update_my_div">
> <input type="submit" value="Search"
name="commit"/>
> </form>
> <div id="my_div"></div>
>
> The /transactions/update_my_div controller simply returns "foo"
>
> I''m using Prototype 1.5.0 and Rails 1.2.3
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---