彩色框:显示/模拟内联内容的“加载"动画 [英] Colorbox: Show/simulate 'loading' animation for inline content

查看:96
本文介绍了彩色框:显示/模拟内联内容的“加载"动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在使用ColorBox,我们在使用jquery的表单中执行了几个步骤,并且我们希望在等待ajax答复时显示ColorBox的加载动画.

Hi there I'm using ColorBox, and we do few steps in a form with jquery, and we want to show the loading animation of ColorBox while we are waiting for the reply from ajax.

我们如何使用它?

谢谢你!

推荐答案

您可以通过调用打开和关闭加载图形:

You can turn the loading graphic on and off with the calls:

$('#cboxLoadingGraphic').show(); 

$('#cboxLoadingGraphic').hide();

在我的应用程序中,我在函数调用的开头调用show方法,然后在ajax调用返回时调用hide方法.

In my app I call the show method in the beginning of the function call, then the hide method when the ajax call returns.

这篇关于彩色框:显示/模拟内联内容的“加载"动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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