下面是我的jquery代码,它执行以下操作:
BindForm
函数调用,如下所示。)当我尝试使用$("#div").load(url,function(){})
替换 - tag.html然后它可以工作,但使用下面的代码不起作用。
现在,我无法更改实现以使用load
,但下面代码中的任何替代或解决方案都会有所帮助。
基本上,我需要$("<div id=" + diaolgID + "></div>")
行保留原样,然后在其中加载对话框。
var tag = $("<div id=" + diaolgID + "></div>");
$.ajax({
url: url,
cache: false,
success: function(data) {
var htmlContainerObject = tag.html(data);
htmlContainerObject.dialog({
modal: true,
hide: {
effect: "none",
duration: 150
},
show: {
effect: "none",
duration: 150
},
title: title,
width: 950,
height: 'auto'
}).dialog('open');
BindForm();
}
});