Extjs组合框未加载Internet Explorer中的数据

时间:2012-09-19 12:41:43

标签: extjs3

以下商店正在使用谷歌浏览器和Firefox,它不能与IE 8一起使用

  var store = new Ext.data.JsonStore({
 fields: ['productname'],
 url: 'productnames.jsp',

autoLoad: true });new Ext.form.ComboBox({
            fieldLabel: 'Product Name',
            hideTrigger: true, 
            name: 'productname',
            id:'productname',
            mode: 'local',
            store: store,
            displayField: 'productname',
            triggerAction: 'all',
            emptyText:'Select Product',
            allowBlank:     false,
            editable:       false,
            forceSelection: true,

            listeners:{select:{fn:function() {
            var selectvalue=this.getValue();
            store1.load({   params: {productname: selectvalue} });

            } }},
            anchor:'95%'
           })

提前致谢

1 个答案:

答案 0 :(得分:0)

根据您的代码,一切看起来都应该正常工作。我会看一下你返回的JSON。最后可能会有一个额外的“,”或其他东西。通常,Internet Explorer在脚本/返回/等结尾处有额外逗号的最大问题。而Firefox和Chrome则没有。但是使用上面的代码,看起来一切都应该正常工作。

相关问题