逗!
change里面也没有写代码,你怎么也得写个ajax代码,请求后 台吧?

解决方案 »

  1.   

    不是啊    那个  'change' : function(){
                     url: 'index';
               //alert("211");
                   }   开始是alert("211");一下 没有弹框!    进action不可以 url: 'index';  直接进吗,   ajax怎么写能给个例子吗?谢谢
      

  2.   

    不是啊    那个  'change' : function(){
                     url: 'index';
               //alert("211");
                   }   开始是alert("211");一下 没有弹框!    进action不可以 url: 'index';  直接进吗,   ajax怎么写能给个例子吗?谢谢这样?
     Ext.Ajax.request({   
                url : 'index.action',   
                params:{path:'name'},   
                method : 'POST',    
                success :function(response , options){   
                  //  alert(”1“);   
                },   
                failure  :function(response , options){   
                  //  alert(”2“)   
                }   
            });     这样?  还是没反应  就是没有进去事件没反应的   ,我用的是什么2.0.2 ,是不是不支持啊?
      

  3.   

    本帖最后由 showbo 于 2014-09-30 09:35:37 编辑
      

  4.   

    用什么版本不是我们能做主的  而且我又是第一次接触这个    就是说  我这样写zai 4.0的可以通过吗   var form = new Ext.form.FormPanel({    
              renderTo:'file',   
              labelAlign: 'right',       
              labelWidth: 60,    
              frame:true,   
         
              autoWidth: true,    
              height:200,   
              fileUpload: true,   
                   
              items: [{    
                 xtype: 'textfield',    
                 fieldLabel: '文件名', 
                 
                 listeners : {
                  change : function(){
                    // url: 'index';
               //alert("211");
                 Ext.Ajax.request({   
                url : 'index.action',   
                params:{path:'name'},   
                method : 'POST',    
                success :function(response , options){   
                    alert('1');   
                },   
                failure  :function(response , options){   
                    alert('2');   
                }   
             });  
                   }
                 },
                 
      
                 name : 'uploadFileFieldPath', 
                 id : 'uploadFileFieldPathid',   
                 inputType: 'file'//文件类型    
               }],