EasyUI Forum
April 18, 2024, 02:12:07 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: dialog.dialog('destroy') in win10 IE11 bug!  (Read 5914 times)
mygod
Newbie
*
Posts: 10


View Profile Email
« on: March 19, 2018, 06:56:16 PM »

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
« Last Edit: March 19, 2018, 10:41:25 PM by mygod » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: March 19, 2018, 11:45:56 PM »

Please check your 'Handler_syRoleGrant.ashx' carefully. Comment your code in this page and run again to see if the issue continues.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!