问题描述
是否有真正的异步/ajax 文件上传到 grails 中,挂接到默认的忙碌"微调器(在其他 ajax 调用中显示的那个微调器)?
Is there true asynchronous/ajax file uploading in grails that hooks into the default "busy" spinner (the one that shows on other ajax calls)?
或者,如果我想在文件上传期间显示微调器,我需要明确调用吗?
Or if I wanted to show that spinner during a file upload would I need to call is explicitly?
推荐答案
这是您通常需要第三方帮助的事情之一,因为它背后的一些复杂性和限制交换.
This is one of those things that you usually want some help from a third party because of some of the complexities and restrictions behind the exchange.
一些插件可用于使用 Flash 来完成此任务的 jquery,但我更愿意避免使用 Flash(个人偏好).查看 Valums Ajax-Upload 我已经在我的生产站点中使用了大约一年,并且它运行良好且易于使用.我最喜欢该插件的一点是,它对大多数网站的设计和布局都不显眼.
Some plugins are available for jquery that use Flash to accomplish this but I prefer to avoid anything that uses Flash (personal preference). Check out Valums Ajax-Upload I've used it now for about a year in my production site and it works well and was easy to use. My favorite thing about the plug-in is that it's unobtrusive to the design and layout of most any site.
此外,这是一个常见问题.也请查看这些答案...
Also, this is a commonly asked question. Check out these answers as well...
这篇关于grails 异步文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!