Uploading files using AJAX

November 20, 2006 at 6:26 pm 8 comments

There is no way to upload files using AJAX. How Gmail does it then? Well, the answer is using <iframe>. Here is a post that describe this technique in detail. Infact we are using this technique from months, obviously inspired by Gmail. ;-)

update: Technically speaking, it’s not Ajax. Just an iframe hack. You are absolutly right Pratik.

About these ads

Entry filed under: Ajax, rails, RubyonRails, Technology, web development. Tags: .

Cheat Sheet Ajax based drag drop and sortable tree for Rails

8 Comments Add your own

  • 1. Pratik  |  November 21, 2006 at 5:40 am

    Technically speaking, it’s not Ajax. Just an iframe hack.

    So there is no way to upload files using Ajax.

    Reply
  • 2. Vineet Jain  |  November 21, 2006 at 6:04 am

    Some of my AJAX based work –

    http://padmanijain.googlepages.com/myexperiments.html

    I have used iframes here.

    Reply
  • 3. Akhil Bansal  |  November 21, 2006 at 11:09 am

    Hi Pratik,
    Obviously this is not AJAX. Infact I have mentioned in my very first line that there is no way to upload files using AJAX.

    Reply
  • 4. Pratik  |  November 23, 2006 at 7:35 am

    “How Gmail does it then?”

    Does what ? ;-)

    Reply
  • 5. Pratik  |  November 23, 2006 at 7:35 am

    I love how box.net people do it though. Pretty slick UI.

    Reply
  • 6. Rajesh  |  December 5, 2006 at 1:33 pm

    i need tree on ruby on rails.any one knows tell me please

    Reply
  • 7. Prakash Tandukar  |  December 31, 2006 at 1:12 pm

    Could please show me some code?

    Reply
  • 8. i can haz ajax?  |  July 21, 2009 at 9:55 pm

    “How Gmail does it then?”

    google do it with iframe?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Important Notice…

I have moved this blog to http://webonrails.com . I will continue posting at http://webonrails.com, not on http://webonrails.wordpress.com.

Kindly update your book marks to http://webonrails.com

and http://webonrails.com/feed .

I am really very sorry for inconvenience.

Comming Soon….

Domain for Sale

TheRailsHosting.com


(Contact me)

Recent Posts

Calender

November 2006
M T W T F S S
« Oct   Dec »
 12345
6789101112
13141516171819
20212223242526
27282930  

Subscribe

  • Add to Google
  • Subscribe in NewsGator Online
  • Subscribe with Bloglines
  • WebOnRails on feedburner
  • technorati

del.icio.us

Feeds

Flickr Photos

Senja

Goal

Jokulsarlon

More Photos

Visitor’s Location

Blog Stats

  • 16,936 hits

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: