彩盒弹出问题。 [英] Issue in color box popup issue.
问题描述
嗨专家,
我在我的应用程序中使用mvc 4,在这个应用程序中有一些弹出窗口,一个弹出窗口调用colorbox,在colorbox iframe中加载数据通过jquery ajax调用。它的工作正常但是,我有另一个弹出窗口正在使用反馈目的,如果最初反馈弹出窗口打开然后彩盒弹出窗口不起作用。
如果有任何机构有这个问题的解决方案请分享,因为它是非常紧急。
谢谢
Ram
[来自评论的OP代码]
。忘记错误颜色框不是一个功能。
Hi Experts,
I am using mvc 4 in my application, in this application there are some popups, one popup calling colorbox , in the colorbox Iframe loading the data through jquery ajax call. Its working fine but , I have another popup which is using feedback purpose, If initially feedback popup is opened then colorbox popup is not working .
If any body having solution for this issue please share with as it is very urgent.
Thanks
Ram
[OP code from comment]
.getting error colorbox not a function.
function getview(val, dtype){
$(".LightBox").removeData();
$.ajaxSetup({ cache: false });
var url = '/..../........?ids=' + val + '&type=' + dtype + '&RequestedModule=dashboard';
$(".LightBox").colorbox({ iframe: true, innerWidth: "95%", innerHeight: "95%", href: url, Title: "Tiff Image Viewer" });
$.ajax({
url: '@Url.Action("CheckSession", "Search")',
success: function (data) {
if (data == 'False') {
parent.$.fn.colorbox.close();
window.parent.location.reload();
}
}
});
if (ie == 8) {
RemoveExtraDivs();
}
return true;
}
推荐答案
( .LightBox)。removeData();
(".LightBox").removeData();
.ajaxSetup({cache: false });
var url = ' / ... ./ ........?ids =' + val + ' & type = ' + dtype + ' & RequestedModule = dashboard';
.ajaxSetup({ cache: false }); var url = '/..../........?ids=' + val + '&type=' + dtype + '&RequestedModule=dashboard';
( 。LightBox)。colorbox({iframe: true ,innerWidth: 95%,innerHeight: 95%,href:url,标题: Tiff图像查看器});
(".LightBox").colorbox({ iframe: true, innerWidth: "95%", innerHeight: "95%", href: url, Title: "Tiff Image Viewer" });
这篇关于彩盒弹出问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!