sorry !
my english is not so good!
I have a question .
var dialog_1 = dialog ({
title: 'aaa',
url: contextPath + syRoleForm.html',
model:true,
buttons: [{
text: 'add',
handler: function () {
$.post('Handler_syRoleGrant.ashx'
, function (result) {
dialog_1.dialog('destroy');
},
'json');
}
}]
});
syRoleForm.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Progma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache,must-revalidate" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<script type="text/javascript">
</script>
</head>
<body>
<div> test</div>
</body>
</html>
when 'Handler_syRoleGrant.ashx' return
dialog_1.dialog('destroy');
Hint error ,
The object does not support this operation
If it is as follows
var dialog_1 = dialog ({
title: 'aaa',
url: contextPath + syRoleForm.html',
buttons: [{
text: 'add,
handler: function () {
dialog_1.dialog('destroy');
}
}]
});
It is no error
in IE8 firefox is no error