EasyUI Forum
May 14, 2024, 08:48:21 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: combobox bug  (Read 9200 times)
xiaohuo315
Newbie
*
Posts: 8


View Profile Email
« on: June 22, 2015, 08:49:43 PM »

there are two page:test1.html and test2.html.
test1.html code:
Code:
<html>
<head>
    <title></title>
    <link href="Scripts/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />    
    <link href="Scripts/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />

    <script src="Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="Scripts/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="Scripts/EasyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

</head>
<body style="margin:0px;">
    
<div style="width:500px;height:500px;">
   [b] <iframe id="iframe" src="test2.html" scrolling="no" style="width:100%;height:100%;"></iframe>[/b]
</div>
</body>
</html>

test2.html code:
Code:
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title></title>
    <link href="Scripts/EasyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />    
    <link href="Scripts/EasyUI/themes/icon.css" rel="stylesheet" type="text/css" />

    <script src="Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="Scripts/EasyUI/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="Scripts/EasyUI/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
</head>
<body style="margin:0px;">
<div  style="width:800px; height: 500px;text-align:center;padding-top:20px;">
    <input id="combo" />
</div>
<script type="text/javascript">
    $(function () {
        $('#combo').combobox({
            valueField: 'id',
            textField: 'name',
            data: [
                { 'id': 1, 'name': '1' },
                { 'id': 2, 'name': '2' },
                { 'id': 3, 'name': '3' },
                { 'id': 4, 'name': '4' },
                { 'id': 5, 'name': '5' },
                { 'id': 6, 'name': '6' }
            ],
            value: 3
        });
    });
</script>

</body>
</html>

 using easyui 1.4.1 and IE9,  if we vist test1.html, tere will be an error(see the attchment image).
 if we vist test2.html,no error.
 
« Last Edit: June 30, 2015, 06:09:35 PM by xiaohuo315 » Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #1 on: June 22, 2015, 11:50:04 PM »

We have tested it in our machine, no errors occur. If your issue continues, please try to update the 'jquery-1.8.2.min.js' file to another version, or update the easyui to the latest version.
Logged
xiaohuo315
Newbie
*
Posts: 8


View Profile Email
« Reply #2 on: June 23, 2015, 12:58:19 AM »

We have tested it in our machine, no errors occur. If your issue continues, please try to update the 'jquery-1.8.2.min.js' file to another version, or update the easyui to the latest version.
Are you tested it under easyui 1.4+ ,IE9 and jquery 1.8.2?  if you test it on IE11 and change document mode(like this attachment) to IE9,there is no error.
« Last Edit: June 23, 2015, 07:22:52 PM by xiaohuo315 » 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!