//neTypeStore.load();
var neTypeCombo = new Ext.form.ComboBox({
store : neTypeStore,
emptyText : "请选择",
fieldLabel : "网元类型",
isFormField : true,
id : "ne_type",
name : "ne_type",
mode : "remote",
triggerAction : "all",
valueField : "id",
displayField : "text",
editable : false,
// autoWidth: true,
width : "300",
renderTo : "ne_type_div",
listeners: {
"select":function(e,record,index){
var netype=Ext.getCmp("ne_type").getRawValue();
var ne_type=temp(netype);
var borad_state=Ext.getCmp("borad_state").getValue();
// alert(ne_type+borad_state);
//alert(ne_type.getId());
//ne_type.clearValue();
ds.proxy = new Ext.data.HttpProxy({
url : "combox.do?dispatch=element&sType="+borad_state+'&sEquipType='+ne_type+'&sEquipName='+''+'&srecordname=abcdefg&iNeedRange='+1,
method : "POST"
});
// Ext.apply(ds.store.baseParam, {sType: borad_state,sEquipType: ne_type,sEquipName: "",iNeedRange: 1});
ds.load({params:{start:0,limit:101}});
}
}
});
这是下拉框的选择事件然后用e来获取下拉框的值,请问高手们function中的e是怎么回事
var neTypeCombo = new Ext.form.ComboBox({
store : neTypeStore,
emptyText : "请选择",
fieldLabel : "网元类型",
isFormField : true,
id : "ne_type",
name : "ne_type",
mode : "remote",
triggerAction : "all",
valueField : "id",
displayField : "text",
editable : false,
// autoWidth: true,
width : "300",
renderTo : "ne_type_div",
listeners: {
"select":function(e,record,index){
var netype=Ext.getCmp("ne_type").getRawValue();
var ne_type=temp(netype);
var borad_state=Ext.getCmp("borad_state").getValue();
// alert(ne_type+borad_state);
//alert(ne_type.getId());
//ne_type.clearValue();
ds.proxy = new Ext.data.HttpProxy({
url : "combox.do?dispatch=element&sType="+borad_state+'&sEquipType='+ne_type+'&sEquipName='+''+'&srecordname=abcdefg&iNeedRange='+1,
method : "POST"
});
// Ext.apply(ds.store.baseParam, {sType: borad_state,sEquipType: ne_type,sEquipName: "",iNeedRange: 1});
ds.load({params:{start:0,limit:101}});
}
}
});
这是下拉框的选择事件然后用e来获取下拉框的值,请问高手们function中的e是怎么回事
解决方案 »
- 全功能的网页视频播放功能,需要怎么做?
- ExtJs 4中 panel怎么load一个新页...
- 如何跳出多层iframe
- js如何取一对标签之间的内容?
- JS拖动div,要求:在父窗体内拖动
- 如何循环判断多个输入框的内容是否合法?
- [共享]很久没来了,更新了点东东。有兴趣的看看 ====>>> 二级、多级(N级)联动下拉列表框更新版,支持IE6,FireFox,函数和类两种调用方式
- 在模拟搜索提示时候,chrome系列的浏览器对输入法输入中文有异常的问题
- x-scriptlet问题的onscriptletevent.的问题
- 如何在网页中Hook网页上的falsh控件的菜单?????
- js把文本框中的内容在url地址栏上显示
- <style>标签里能写<!–[if IE]> 吗
分别是 下拉框自己 选中的record 和 record的index不要看到e就去联想event