Ext: 使用GridPanel分页 firefox能正常显示,ie不能显示

Ext: 使用GridPanel分页 firefox能正常显示,ie6.0不能显示 并出现下列错误提示

出现运行时间错误。
是否要进行调试?
行:51
错误:参数无效


跟踪进入调试页面是 ext_all.js
高亮显示错误处
this.head.removeChild(document.getElementById(B.scriptId));
clearTimeout(B.timeoutId);

请高手解决,谢谢

注:换了多个可以正常运行的ext_all.js 文件,排除ext_all.js文件出错。

初步估计是 ScriptTagProxy  或者  myStore.load({params:{start:0, limit:10}}); 有问题

自己写的代码如下:

JScript code
 
  
var myStore = new Ext.data.Store({ proxy : new Ext.data.ScriptTagProxy({url: ' http://extjs.com/forum/topics-remote.php ' }), reader: new Ext.data.JsonReader({ root: ' topics ' , totalProperty: ' totalCount ' , id: ' post_id ' },[ ' post_id ' , ' topic_title ' , ' author ' ]) }); myStore.load({params:{start: 0 , limit: 10 }}); // var grid = new Ext.grid.GridPanel({ if ( ! Ext.getCmp(n.id)){ var colModel = new Ext.grid.ColumnModel([ new Ext.grid.RowNumberer(), {header: ' 编号 ' ,width: 50 ,sortable: true ,dataIndex: ' post_id ' }, {header: ' 名称 ' ,width: 100 ,sortable: true ,dataIndex: ' topic_title ' }, {header: ' 创建人 ' ,width: 100 ,sortable: true ,dataIndex: ' author ' } ]); var grid = new Ext.grid.GridPanel({ id:n.id, title:n.text, store:myStore, cm: colModel, closable: true , viewConfig: { forceFit: true }, bbar: new Ext.PagingToolbar({ pageSize: 10 , store: myStore, displayInfo: true , displayMsg: ' 第{0} 到 {1} 条数据 共{2}条 ' , emptyMsg: " 没有数据 " }) }) Ext.getCmp( ' main-tab ' ).add(grid).show(); } else { Ext.getCmp( ' main-tab ' ).setActiveTab(n.id); }
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值