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.

Michael Myers
  • 188,989
  • 46
  • 291
  • 292
Ali
  • 261,656
  • 265
  • 575
  • 769

2 Answers2

4

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.

Community
  • 1
  • 1
Jose Basilio
  • 50,714
  • 13
  • 121
  • 117
  • 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? – Ali May 06 '09 at 22:03
  • I have't used it with CodeIgniter, but there are some posts on that: http://codeigniter.com/forums/viewthread/109751/#554977 – Jose Basilio May 06 '09 at 22:10
0

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
  • 4,679
  • 3
  • 27
  • 29