如何显示的装载图形,而一个文件是越来越上传?

如何显示的装载图形,而一个文件是越来越上传?

问题描述:

该文件应在上传通过Ajax或内部框架的背景。我应该可以用JavaScript来检测时,上传完成后,这样我就可以隐藏加载图形和用户重定向到一个新的URL。使用jQuery是罚款。

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.

查看 jQuery的Uploadify 一>

Check out jQuery Uploadify

编辑:也有一个类似的问题:how-to-upload-file-jquery - 你可以显示图形的上传按钮被点击并隐藏在成功后/ onError的回调函数

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.