javascript - Extjs combo not working in IE7 -



javascript - Extjs combo not working in IE7 -

ext js combo not working in ie7. need combo deed textbox virtual combo (like google search). working in ie9 , ff not in ie7

this code:

searchincidentform=new ext.formpanel ({ border:false, renderto:'searchincidentdiv', id: 'searchincidentform', items : [{ xtype:'panel', id :'panelsearchincident', layout:'column', defaults:{ columnwidth:0.50, labelalign : 'top', layout:'form', border:false, bodystyle:'margin-top:5px; ' }, border:false, items : [{ defaults:{anchor:'100%'}, items:[{ id : "incidentid", fieldlabel : 'incident id', labelstyle: 'color: #6c6c6c;width:85px;padding-top:7px;height: 22px;', xtype : 'combo', store:incidentstores, //style: 'width:85px;height: 18px;', width:100, allowblank : false, labelalign: 'top', displayfield : 'incidentid', valuefield : 'incidentid', selectonfocus : true, typeahead : false, mode : 'remote', triggeraction : 'all', editable: true, msgtarget:'qtip', listalign : 'tl-bl?', //anchor : '80%', minchars : 1, hidetrigger:true, hiddenname: 'incidentid', listwidth:100, listheight:50, submittvalue:true, listeners : { specialkey : function(field, e){ var key=e.getkey(); if (key==e.enter) { incidentsearchbuttonhandler(); } }, beforequery : function(){ var val=ext.getcmp('incidentid').getvalue(); if(isnan(this.getel().dom.value)){ ext.msg.alert("","please type numeric value"); } else{ ext.getcmp('incidentid').getstore().proxy.seturl('getincidentid.html?&query='+this.getel().dom.value); } } } }] },{ items:[{ xtype : 'button', text : 'search', style: 'margin-top:19px;margin-left:20px;width:50px;', width: 35, height:15, handler : incidentsearchbuttonhandler }] }] }] }); }

but it's not working in ie. when press search button, alert shown please type id. means doesn't take value has been typed. please help.

i've been bitten before ie: have comma after lastly element of array:

items:[{ submittvalue:true, listeners : { specialkey : function(field, e){ var key=e.getkey(); if (key==e.enter) { incidentsearchbuttonhandler(); } }, // <------ comma. delete it. ]}

javascript com

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -