PDA

View Full Version : SCRIPT5007: Unable to get value of the property 'id': object is null or undefined



penot
20 Jun 2012, 5:56 AM
ext-all-debug.js line 40456 char 17

createAccessor: (function() {
var re = /[\[\.]/;


return function(expr) {
if (Ext.isEmpty(expr)) {
return Ext.emptyFn;
}
if (Ext.isFunction(expr)) {
return expr;
}
if (this.useSimpleAccessors !== true) {
var i = String(expr).search(re);
if (i >= 0) {
return Ext.functionFactory('obj', 'return obj' + (i > 0 ? '.' : '') + expr);
}
}
return function(obj) {
--> return obj[expr];
};
};
}()),

SCRIPT5007: Unable to get value of the property 'id': object is null or undefined (http://stackoverflow.com/questions/8351638/ie-7-8-issue-unable-to-get-value-of-the-property-id-object-is-null-or-undef) error

Why this happens is that :-/

scottmartin
20 Jun 2012, 12:13 PM
What is called in your code that triggers this error?

This basically means that you are trying to access a undefined object in your code.

Scott.

siltronic
18 Jul 2012, 12:55 PM
Hi,

I Have the same error.

It happen on IE8 (no tested on other IE, but probably IE6 and 7), but not on firefox/chrome.

I have reproduce this issue when a have a very basic memory store in a combobox :


store: Ext.create('Ext.data.Store',{
fields: ['value', 'label'],
data : [
{"value":1, "label":"data1"},
{"value":2, "label":"data2"},
{"value":3, "label":"data3"},
]



Yeah ~o)... notice the last comma.....

Remove it, and it rocks ;)

I hope you'r in this case...

Goodbye

Manoj Parida
17 Jul 2013, 2:42 AM
=D> Thanks for this great thing, as i wasted two hours to resolve this error in IE8 & 7,finally i got here.


Thanks
Manoj Parida

affectionateonu
24 Oct 2013, 2:12 AM
It worked !!!

Thanks a ton Man . . !!=D>:)

Regards,

Anurag Mittal

Manoj Parida
24 Oct 2013, 5:04 AM
Cheers!!! B)