0

I've just put the jQuery UI dialog into a web page. It's the first time I've used it. I thought I had set the bgiframe property correctly but when I check it in IE6 it's still slipping behind dropdownlists. Here's my javascript code. There's nothing flash on the page. A simple div with the text in and an anchor around some text for the 'jClick'. Any ideas why this is happening in IE6?

$(document).ready(function(){
    $("#dialog").dialog({
      bgiframe: true, autoOpen: false,
      overlay: { backgroundColor: '#000', opacity: 0 },
      width: 400,
      height: 200,
      modal: true,
      buttons: {
                'Delete all items in recycle bin': function() {
                    $(this).dialog('close');},
                Cancel: function() {$(this).dialog('close');}
            }
    });

    $("#jClick").click(function(event){
        $("#dialog").dialog('open');
        event.preventDefault();
    });

});
4

2 に答える 2

3

you need to use a jquery plugin, it's called bgiframe iirc. there you'll find explanation of the behavior you see.

于 2009-11-16T04:38:59.083 に答える
2

また、bgiframeプラグインjsを含める必要があります。bgiframeをtrueに設定するだけでは不十分です。おそらく、UIはこれ自体を実装する必要があります。これは、エラーなしで失敗するサイレント依存関係であるため、私が気に入っているかどうかはわかりません。

ここで入手http://plugins.jquery.com/project/bgiframe

于 2009-11-16T11:32:33.787 に答える