jQuery Ui - Swapping thickbox for UI dialog
-
19-12-2020 - |
문제
Thickbox is depreciated and causes problems when used within jQuery UI Tabs. Before moving to using tabs I was simply calling thickbox which worked as normal, with the url of my remote source included. Is there a generic way that jQuery UI dialogs can be made to work the same was as the thickbox solution?
I was calling thickbox like so:
<a href="URLHERE" class="thickbox" disabled title='Select a value from the list provided'><img border=0 src='images/zoom.png'></a>
해결책
Replaced with UI Dialogs:
$('.thickbox').click(function(){
var href = $( this ).attr("rel");
var dialogTitle= $(this).attr("title");
$("#testDialogID").load(href, function() {
var container = $(this);
container.dialog({
bgiframe: true,
opacity: false,
title: dialogTitle,
modal: true
})
});
});
제휴하지 않습니다 StackOverflow