【问题标题】:Extjs combobox in not loading the data in Internet explorerExtjs 组合框未在 Internet Explorer 中加载数据
【发布时间】:2012-09-19 12:41:43
【问题描述】:

以下商店在 google chrome 和 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%'
           })

提前致谢

【问题讨论】:

    标签: extjs3


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-30
      • 1970-01-01
      • 1970-01-01
      • 2012-12-05
      • 2012-10-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多