Forum /
Ext JS 1.x - Unsupported /
Ext 1.x: Bugs /
[Solved] IE error in ext-all.js 'undefined is null or not an object
[Solved] IE error in ext-all.js 'undefined is null or not an object
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!!
Sencha User
You have an extra comma somewhere in one of your object literal definitions.
Jack Slocum
Ext JS Founder
Original author of Ext JS 1, 2 & 3.
Twitter: @jackslocum
jack@extjs.com
Found em!!! That did the trick!!
Thanks!
Ext User
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.
Sencha - Support Team
I doubt; I'd expect that Ext.decode would fail on invalid json.
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).
I was getting same error message, but my solution was different.
I was calling function using a href="javascript howWindow(this)"
and then used "this" as source for win.open()
Worked fine in firefox and chrome, but gave this error in IE.
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.
Ext User
Perfect
This solve the error at once!!!
I had an extra comma after column headers in grid
Thanks a lot!
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us