I like to use an Element.replace to take away the submit button on an
Ajax-handled form, replacing it with a spinner.
This works perfectly in Safari, but in Mozilla 2 on the Mac, I was
seeing a generic text input to the left of my spinner for as long as
the spinner stayed around.
<label for="send">Send</label><input
id="send" type="submit"
value="Send" />
then a listener for the form, which (among many other things) called
this:
$(''send'').replace(''<img
src="/path/to/spinner.gif" width="16"
height="16" alt="" />'');
In safari, the button would be replaced in place with the spinner:
( Send )
...
( \ )
And in Firefox, it would go like this:
[ Send ]
...
[_____________] ( \ )
I ended up wrapping the Send button in a span, and replacing that.
This works in both browsers, but it feels quite icky.
Any suggestions?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---