views:

426

answers:

2

The file should be uploaded in the background via Ajax or Iframes. I should be able to detect via javascript when the upload has completed, so I can hide the loading graphic and redirect the user to a new URL. Using Jquery is fine.

+4  A: 

Check out jQuery Uploadify

EDIT: There's also a similar question: how-to-upload-file-jquery - you could display the graphic after the upload button has been clicked and hide in the success/onerror function callback.

Jose Basilio
I'm having troubles getting Uploadify to work with CodeIgniter. It always gives me an I/O error. Do you know how to make it work with Codeigniter?
Click Upvote
I have't used it with CodeIgniter, but there are some posts on that: http://codeigniter.com/forums/viewthread/109751/#554977
Jose Basilio
A: 

The jquery Form Plugin is capiable of doing Ajax upload (using an iframe i believe). It won't help you out directly with showing/hiding an loading image, but it has the appropriate events so you know when the upload starts and finishes.

Corey Downie