PDA

View Full Version : [Solved] IE error in ext-all.js 'undefined is null or not an object



nromanel
9 Aug 2007, 2:45 PM
I am rendering a grid in my project.

On firefox, this code works fine.
However in IE 7 I get the following error:

'undefined' is null or not an object

I believe the error is occuring on Line 239 in ext-all.js and the following section is highlighted:
if(typeof _1[i].dataIndex=="undefined")

I feel as if I'm not providing enough information for you guys to help me with my problem, let me know what else I should provide!!

jack.slocum
9 Aug 2007, 3:02 PM
You have an extra comma somewhere in one of your object literal definitions.

nromanel
9 Aug 2007, 4:31 PM
Found em!!! That did the trick!!

Thanks!

stevefink
1 Sep 2007, 3:33 PM
Hi I think I'm having a problem here as well. Is it possible that the extra comma is somewhere in a json object?

Something like this perhaps breaking IE7?

{"data":[{"color":"blue","miles":"110000","price":"6500","stock":"0","year":"2007","carfax":"","daysold":"0","photo_count":"5","model":"MDX","make":"Acura"},{"color":"Blue","miles":"11600","price":"4500","stock":"456789","year":"1979","carfax":"","daysold":"0","photo_count":"4","model":"Booyakasha","make":"Acura"},{"color":"Blue","miles":"11600","price":"4500","stock":"4567891","year":"1979","carfax":"","daysold":"0","photo_count":"1","model":"RDX","make":"Acura"}]}

Thanks.

jsakalos
1 Sep 2007, 4:35 PM
I doubt; I'd expect that Ext.decode would fail on invalid json.

jsakalos
2 Sep 2007, 1:45 AM
How did you solve it? Others may be interested too... ;)

jon
10 Oct 2007, 11:31 PM
I had a similar problem, turned out (as others mentioned) I had an extra comma in my json file (which I dynamically create based on logged in user in my application). :)

aderen
1 Jun 2009, 10:55 AM
I was getting same error message, but my solution was different.

I was calling function using a href="javascript:showWindow(this)"

and then used "this" as source for win.open()
Worked fine in firefox and chrome, but gave this error in IE.

ramccune
28 Jan 2010, 6:27 AM
My server side application dynamically generates and returns JSON. Cutting and pasting this from the response tab of the Firefox console into any one of the free JSON verification web sites revealed an extra comma. Fixed this and everything is now okay.

shailendra
6 Apr 2010, 1:06 AM
Perfect =D>
This solve the error at once!!!
I had an extra comma after column headers in grid

Thanks a lot!

Dr. Flink
7 Jun 2010, 2:32 PM
When using an IDE that is able to perform searches with regular expressions (like Aptana Studio): ,\s+} can be a lifesaver.

My error occurred because I forgot to declare the itemSelector in one of my dataViews.

devtig
23 Nov 2010, 3:54 AM
I used jslint.com to fix my code that caused the same error.