-1
我在iframe中打开我的用户控件。因此,我的用户控件花费时间在iframe内显示。我想显示一个“加载。请稍候..”图像,直到我的用户控件加载到iframe中。我的变化如下:如何在打开jQuery对话框时显示加载图像
.js文件
var originalURL = pageURL + "/MDMDataHub/AddAliasPage.aspx?SOURCE_HQ_REF=" + sourceHQRef + "&HQ_SOURCE_NAME=" + sourceName + "&BUSINESS_RID=" + rGroupId;
var width = $(this).attr('data-width') || 595;
$('#aliasPopUpHeader').find('h4').remove();
$('#aliasPopUpHeader').append(' <h4 class="modal-title" > ' + "Add Parent Alias " + ' confirmation !</h4>');
$("#addAliasPopUp").dialog({
autoOpen: true,
width: width,
resizable: true,
draggable: true,
modal: true,
show: { effect: 'blind' },
}).find('iframe').attr("src", originalURL);
aspx页面
<div class="modal-dialog" id="addAliasPopUp" style="display: none">
<div class="modal-content">
<div class="modal-header" id="aliasPopUpHeader">
<button type="button" class="close closePopup closePopAlias">
<span>×</span></button>
</div>
<div class="modal-body" id="AddAliasConfirmPopUP">
<iframe class="embed-responsive-item" frameborder="0" style="height:600px;width:100%"></iframe>
</div>
<div class="modal-footer">
<button type="button" id="aliasClosePopUp" class="btn btn-cancel closePopup closePopAlias">
Cancel</button>
</div>
</div>
</div>
现在
上的按钮的单击事件,我打开对话框(在提到jQuery的)。我现在想要显示一个gif图像,直到我的用户控件加载到iframe中。我怎样才能做到这一点。