如何显示的装载图形,而一个文件是越来越上传? [英] How to show a loading graphic while a file is getting uploaded?

查看:95
本文介绍了如何显示的装载图形,而一个文件是越来越上传?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该文件应在上传通过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

编辑:也有一个类似的问题:<一href="http://stackoverflow.com/questions/166221/how-to-upload-file-jquery">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.

这篇关于如何显示的装载图形,而一个文件是越来越上传?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆