[Rails] Re: form remote only if new record.
On Nov 18, 5:28 pm, Mauro <mrsan...@gmail.com> wrote:
>
> I've noticed that if I don't fill the file field then if I create a
> new document but without attaching any file then ajax works.
> If I attach a file in the file field then ajax doesn't work.
Files can't be sent over ajax. There is the iframe trick which looks
like ajax (in that there is no full page reload) but is in fact just a
'normal' form submission. Some js libraries (e.g. jquery.form if my
memory is correct) will even do this automatically for you.
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home