PHP Classes

IE Error

Recommend this page to a friend!

      DrasticTools  >  All threads  >  IE Error  >  (Un) Subscribe thread alerts  
Subject:IE Error
Summary:'options.columns[...].name' is null or not an object
Messages:2
Author:Joey Berry
Date:2009-04-21 05:00:05
Update:2009-08-10 19:54:51
 

  1. IE Error   Reply   Report abuse  
Picture of Joey Berry Joey Berry - 2009-04-21 05:00:05
I am receiving one minor error in Internet Explorer which I'm sure is just something that I'm overlooking. Everything works perfect in Firefox... Heres the error from IE:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Tue, 21 Apr 2009 04:18:41 UTC


Message: 'options.columns[...].name' is null or not an object
Line: 100
Char: 5
Code: 0
URI: http://motorizedmedia.com/map/js/drasticGrid.js

URL: http://motorizedmedia.com/map/map.php

Can you offer any insight to the problem?

  2. Re: IE Error   Reply   Report abuse  
Picture of dd dd - 2009-08-10 19:54:51 - In reply to message 1 from Joey Berry
Joey,

If I remember well, we already solved this problem, but for other people reading this, it may be useful to know that if they experience a situation where everything works fine in browsers such as FF, Opera, chrome etc. but not in IE, then it might be that the 'columns' variable in the drasticgrid call has an array that has a comma at the end of the last element.
We have seen this a number of times. So if you have:

columns: [
{name: 'Region', width: 200, editable:false},
{name: 'country', width: 50, editable:false},
{name: 'amount' , width:25, editable:false},
]

Then change it into:

columns: [
{name: 'Region', width: 200, editable:false},
{name: 'country', width: 50, editable:false},
{name: 'amount' , width:25, editable:false}
]

Note the 'amount' line has no comma at the end.

regards, Drasticdata