有没有办法删除本机 ColdFusion AJAX 加载动画?
有没有办法,如何删除 ColdFusion AJAX 函数中内置的加载动画?
<cfinput type="text" name="TitleName" autosuggest="cfc:MyCFC.AutoSuggestSearch({cfautosuggestvalue})">
使用以下代码在我的搜索字段旁边创建一个小图标,该图标在 AJAX 请求等待响应时会显示动画。有没有办法去掉这个动画图标?
Is there a way, and how can I remove the loading animation that's built into the ColdFusion AJAX functions?
<cfinput type="text" name="TitleName" autosuggest="cfc:MyCFC.AutoSuggestSearch({cfautosuggestvalue})">
Using the following code creates a small icon next to my search field which animates while the AJAX request is waiting for a response. Is there a way to remove this animation icon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一种更简单,更重要的是,有一种正确的方法来做到这一点。进入 CFINPUT 标记并选择名为
SHOWAUTOSUGGESTLOADINGICON
的属性,然后选择False
。完毕!There is an easier, and more importantly, a right way of doing it. Go inside your CFINPUT tag and choose the attribute called
SHOWAUTOSUGGESTLOADINGICON
and selectFalse
. Done!尝试将其添加到页面的头部:
请注意,如果您愿意,您应该能够将自己的 HTML 放入该字符串中,以显示自定义加载图形或其他消息。
Try adding this to the head section of your page:
Note that you should be able to put your own HTML into that string, to display a custom loading graphic or some other message instead, if you like.
以下代码对我不起作用:
我的解决方案是在 ColdFusion 生成的以下图层上使用“visitbility:hidden”,并使用负边距来删除为图像保留的空间(请注意,“折叠”不起作用:
Adam Tuttle 进一步改进了该解决方案,他建议使用“display:none”而不是“visibility:hidden;”,这完全消除了为加载图形保留的空间。
The following code does not work for me:
My solution was to use "visitbility:hidden" on the following layers generated by ColdFusion, and to use negative margins to remove the space reserved for the image (note that "collapse" does not work:
This solution was further improved by Adam Tuttle, who suggested using "display:none" instead of "visibility:hidden;" which entirely eliminates the space reserved for the loading graphic.