Extjs 监听file的change事件是怎么 无效果 逗!change里面也没有写代码,你怎么也得写个ajax代码,请求后 台吧? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不是啊 那个 'change' : function(){ url: 'index'; //alert("211"); } 开始是alert("211");一下 没有弹框! 进action不可以 url: 'index'; 直接进吗, ajax怎么写能给个例子吗?谢谢 不是啊 那个 '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 ,是不是不支持啊? 本帖最后由 showbo 于 2014-09-30 09:35:37 编辑 用什么版本不是我们能做主的 而且我又是第一次接触这个 就是说 我这样写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'//文件类型 }], 系统在ie8上无问题,到ie9上出现输入框无法点击,下拉框需要多选几次等问题 使用java开发的一个web程序 在IE下客户端JS读取XML文件问题(回帖有分) 求各位大侠 发个用JS写的注册信息时的验证码 报错:document.images.s_l 为空或不是对象 ★ 请问各位高人,如何控制 iframe 里的网页的链接打开方式? JavaScript的变态编码 onmousemove的问题 孟子兄,帮我看一下吧。 checkbox的验证问题 求一车牌号正则表达式 json解析一个很怪异的问题,解析后的数据值与原来文本中的数据不同,高手帮忙看一下吧
url: 'index';
//alert("211");
} 开始是alert("211");一下 没有弹框! 进action不可以 url: 'index'; 直接进吗, ajax怎么写能给个例子吗?谢谢
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 ,是不是不支持啊?
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'//文件类型
}],