如何在AjaxUpload上设置进度条?
new AjaxUpload($('input.partupload'), {
autoSubmit: true,
action: '/Home/UploadFile',
onComplete: function (file) {
alert("complate")
}
});
我使用 AjaxUpload 上传文件,并想在其上设置进度条。我在谷歌中找不到解决方案。
new AjaxUpload($('input.partupload'), {
autoSubmit: true,
action: '/Home/UploadFile',
onComplete: function (file) {
alert("complate")
}
});
I used AjaxUpload for upload the file, and want to set progress bar on it. I can't find solution in Google.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我从未遇到过 AjaxUpload,但它似乎没有很好的记录。我还注意到它使用 silverlight 来生成进度条 - 您是否期望每个使用您的应用程序的人都拥有 silverlight?
如果您正在寻找一个几乎做同样事情并且具有广泛支持的组件,我建议使用 uploadify:
http://www.uploadify.com/
它有很好的文档,并且为您提供比 AjaxUpload 更多的脚本控制。
祝你好运!
I've never run into AjaxUpload, but it doesn't appear to be documented very well. I also noticed that it uses silverlight to generate the progress bar - are you expecting everyone who uses your app to have silverlight?
If you're looking for a component that pretty much does the same thing and has some wide spread support, I would suggest using uploadify:
http://www.uploadify.com/
It's pretty well documented, and gives you a little more script control than AjaxUpload.
Best of luck!