I’d bet money that they use a hidden iframe.  Gmail already uses that to avoid breaking the back button, from what I’ve read.  It’s impossible to send multipart form data through XMLHttpRequest, or so everything I read says and my own personal attempts confirm.  There is an IE ActiveX plugin that will let you send files in a similar fashion, but it’s IE only.  I forget the name of it at this moment.

 

Greg

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Shannon
Sent: Wednesday, December 14, 2005 8:52 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Form.serialize and Ajax.Request->fileserialization and encoding

 

I’ve not looked into how it’s done but adding an attachment in Gmail (UK version) uploads the file without refreshing the window, and http://www.yousendit.com appears to send a file via some sort of RPC or AJAX. Maybe this could be another starting point for you.

 

Paul Shannon

Web Applications Developer

 

Codeweavers Limited

 

Tel: 0870 443 0888

Fax: 0870 443 0889

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to