PDA

View Full Version : Question about used app combo.js



fptquangngai
18 Apr 2015, 2:48 AM
Hello everyone!


We have been using the combo.js with EXTJS 2.x in our application.


From last few weeks, we are getting "object required" JS error on IE8 and the issue leads to the 3rd line in the below code. We are getting "null" in to "s", which is causing the issue.



if(this.transform){
this.allowDomMove = false;
var s = Ext.getDom(this.transform);
if(!this.hiddenName){
this.hiddenName = s.name;
}
if(!this.store){
this.mode = 'local';
var d = [], opts = s.options;
for(var i = 0, len = opts.length;i < len; i++){
var o = opts[i];
var value = (Ext.isIE ? o.getAttributeNode('value').specified : o.hasAttribute('value')) ? o.value : o.text;
if(o.selected) {
this.value = value;
}


Is there a way to fix this?


Thanks!