문제

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
            })
        });

    });
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top