我正在使用ASP.NET/C#。在我的一个页面中,我正在显示客户列表及其详细信息ASP.NET Listview。在每一行中,我都有一个Linkbutton将在 a 中显示该客户的信息popup。当前,当ShowDetails单击链接时,我正在显示 a loading gif,然后信息popup是显示。我jquery delay()用来延迟显示信息popup。
显示弹出窗口的 Jquery 函数:
function ShowCustomerInformationPopUp()
{
$('#AuthorizeCustomerLoadImg').show();
$('#AuthorizeCustomerMask').delay(1200).show("slow");
$('#AuthorizeCustomerShowCustInfo').delay(1200).show("slow");
}
我在使用的单击事件上调用此函数Linkbutton。code behind所以ClientScriptManager.RegisterStartupScript现在当用户单击时Show Details Linkbutton会popup延迟一点同时loading gif显示。所以我的问题是,loading gif通过延迟显示其他元素是否是显示的好方法。有吗这种方法的任何缺点。你们中的许多人如何表现gif's。
欢迎任何建议。