Hi folks.

Any way of submitting a form without a refresh using onsubmit, as the
folloiwng suggests?

<form action="#" method="post" onsubmit="javascript:post(); return
false;" id="coForm" name="coForm" enctype="multipart/form-data">
<input type="file" name="x_item" size="25" value="">
</form>

I'm not sure how to receive it in my JS, other than:

$('x_item')

I need to turn this around and pass it to my middleware file, where it
can be received as a file upload.

Is this possible?  Any precautions?  Experience?

It would be nice to manage associated images with my records, using a
nice non-refresh form.

Cheers


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to