I am populating anchor links in repeater through javascript, I am poping up the those links with colorbox iframe.
Its working fine in IE7,Safari, Chrome, but not in Forefox(14.1).
In firefox its opening in a new window, instead of opening in 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%" });
});
As the anchor links were dynamically generated at run time, so I had to rebind ColorBox events after that:
instead of doing ” $(document).ready”
I called below function after generating the “auctionhistorybox” links in repeater
}
appreciate your help @Vector.