Ruby on Rails Sunday, September 5, 2010

A. Leek wrote:
> I'm pretty sure I have all the information I need in the program, the
> problem is getting it all together and I'm not sure if that's even
> possible. Does anyone have ideas?

It may be too narrowly supported for what your trying, but you can go to
the HTML5 route. Check out the File API:
http://dev.w3.org/2006/webapi/FileAPI/, which shows the new javascript
events that get fired when you do an upload. You can tie into the
following and perform actions all on the client side:

onloadstart
onprogress
onabort
onerror
onload
onloadend

If you need a more legacy (well, meaning it will support IE) solution
you can look at SWFUpload. It has similar events, but uses Flash and
Javascript to handle files and events.

http://swfupload.org/
--
Posted via http://www.ruby-forum.com/.

--
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.

No comments:

Post a Comment