Check out the README for the responds_to_parent plugin on github:
http://github.com/markcatley/responds_to_parent/tree/master
That's a very basic example, but should give you an idea of how to do
it. Basically you just have an invisible iframe on the page, and you set
the target= attribute of the form to post to the iframe. You then render
rjs in the controller to update the page in the response that gets
loaded in the iframe.
You need the responds_to_parent plugin installed because by default the
javascript being rendered inside of an iframe can't talk to the parent
page/document.
If you set up some js event handlers to turn on a spinning wheel when
you hit submit for the form, etc, you can have a nice ajaxy upload form
without reloading the page.
| Kennon Ballou
| Angry Turnip, Inc.
blueHandTalking wrote: