mimicong 2009-07-17 09:40
浏览 199
已采纳

帮我看一下EXT的一个问题

/****js文件**********************/

viewGrid = Ext.extend( Ext.grid.GridPanel,{

constructor:function(){ 
   
  viewGrid.superclass.constructor.call(this,{
          renderTo:Ext.getBody(), 
          cm:new Ext.grid.ColumnModel([ 
         {header:'编号',dataIndex:'id'},
        {header:'名称',dataIndex:'name'},
        {header:'描述',dataIndex:'descn'}
    ]),     
        store: new Ext.data.Store({
        proxy: new Ext.data.HttpProxy({url:'/ExtText/login.do'}),
        autoLoad:true,
        reader: new Ext.data.JsonReader({
            totalProperty: 'totalProperty',
            root: 'root'
        }, [
            {name: 'id'},
            {name: 'name'},
            {name: 'descn'}
        ])
    }),
           width:350,
           height:400,
           loadMask:true,
          stripeRows : true 
   });

}



});
/***************页面*************/

Ext.onReady(function(){

 

 

 new viewGrid();

 

});

 

/***************firebug报错*******************/

Firebug needs to POST to the server to get this information for url:

http://localhost:8080/ExtText/login.do?_dc=1247794682046

This second POST can interfere with some sites. If you want to send the POST again, open a new tab in Firefox, use URL 'about:config', set boolean value 'extensions.firebug.allowDoublePost' to true
This value is reset every time you restart Firefox This problem will disappear when https://bugzilla.mozilla.org/show_bug.cgi?id=430155 is shipped

 

 


问题补充:
我觉得不应该是firebug的问题,在ie下,这个grid同样到后台取不到值,我觉得应该是我继承Gridpanel的时候,哪个地方写的有问题。
  • 写回答

2条回答 默认 最新

  • iteye_20589 2009-07-17 10:30
    关注

    [quote]url:'/ExtText/login.do'[/quote]

    把url改成其他名字的,先做个试验,看看是不是这个URL值的问题

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助