Jquery Colorbox issue with firefox
Jquery Colorbox issue with firefox
我通过javascript填充中继器中的锚链接,我用colorbox iframe弹出这些链接。它在IE7、Safari、Chrome中运行良好,但在Forefox(14.1)中则不然。
在firefox中,它在一个新窗口中打开,而不是在colorbox iframe中打开。
function BidCountFormatter(BidCount, AuctionID) {
if (parseInt(BidCount) > 0)
return "<b><a class=auctionhistorybox href=popupauctionhistory.aspx?auctionid=" + AuctionID + ">" + BidCount + "</a></b>";
else
return "--";
}
$(document).ready(function () {
$(".auctionhistorybox").colorbox({ iframe: true, width: "35%", height: "60%" });
});
由于锚链接是在运行时动态生成的,因此我不得不在那之后重新绑定ColorBox事件:
而不是做"$(document).ready"
$(document).ready(function () {
$(".auctionhistorybox").colorbox({ iframe: true, width: "35%", height: "60%" });
});
在中继器中生成"auctionhistorybox"链接后,我调用了以下函数
function bindColorBoxEvents() {
$('.auctionhistorybox').each(function (i) {
$(this).unbind('click');
$(".auctionhistorybox").colorbox({ iframe: true, width: "50%", height: "95%" });
});
}
感谢您的帮助@Vector。
相关文章:
- Fighting with FRP
- 为什么这在IE中的工作方式与在Firefox中不同
- issue with FB.Event.subscribe
- JS可以在Chrome中工作,但不能在Firefox中工作
- createElement("a") - FireFox JavaScript
- geolocation-marker.js conflict with markerclusterer.js
- 为什么javascript:void(0)在Firefox中不起作用
- Angular 2.0 with JavaScript or TypeScript?
- Facebook登录按钮没有'不能在Firefox上工作
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- jpm的默认Firefox路径没有'不起作用
- Jquery Colorbox issue with firefox
- Image fadeIn not working with Internet Explorer or Firefox
- Firefox WebExtension - issue with browser.i18n.getMessage
- Firefox CSS transitions with body overflow:hidden
- addEventListener with mousewheel在Firefox中不起作用
- Firefox vs Safari with JavaScript
- jquery 1.10.2 conflict with firefox 29.0.1
- canvas setLineDash with array不能在Firefox中工作,但在Chrome中
- Angular 2 POST with Firefox