Iframe upload indicator

I’m using the iframe trick to upload files with form_tag and a target
pointing to the iframe. All is working, but I would like to display an
indicator of the upload. All I want to do is show a hidden animated gif
via
Element.show. With form_remote_tag, i could use the :loading and
:complete
callbacks to do an Element.show and Element.hide. How do I achieve a
similar
effect with form_tag?

Larrytheliquid [email protected]
writes:

I’m using the iframe trick to upload files with form_tag and a target
pointing to the iframe. All is working, but I would like to display an
indicator of the upload. All I want to do is show a hidden animated gif via
Element.show. With form_remote_tag, i could use the :loading and :complete
callbacks to do an Element.show and Element.hide. How do I achieve a similar
effect with form_tag?

form onSubmit event might help.


Surendra S.
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
,----
| “All animals are equal, but some animals are more equal than others.”
| – Orwell, Animal Farm, 1945
`----

That’s exactly what I ended up doing.
onSubmit=“Element.hide” and page.hide as the first line in the rjs.
A bit elementary but it works.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs