我想加载一个页面到jQueryUI的.dialog()
功能,它工作正常。但关闭对话框后,我的页面的其余部分仍然被禁用。jQueryUI对话框正在打破我的页面
$(function() {
var w = $(document).width();
var h = $(document).height();
$("#diag").dialog({ //dialog box settings
autoOpen: false, //do not open automatically
show: {
effect: "slide" //slide frame in
},
modal: true, //disable the other elements
width: w, //set width to window width
height: h //set width to window height
});
$(".icon").click(function() { //on .icon click
var v = $(this).attr('value'); //load value of clicked item into v
$("#diag").load(v).dialog("open"); //open the #diag box
});
});
当我带走.load(v)
并注释掉V的初始化,.dialog()
完美。我很难过。
您正在加载的页面是否包含jQuery和jQuery UI的另一个副本? – 2013-04-30 20:24:43
它没有。我把它包括进去了,重新测试了一下,让我更靠近了一步!现在回到主页面时,悬停工作。如果不刷新,我们仍然无法重新打开窗户。 – jrelwell 2013-04-30 20:30:39