google-code-export / flexigrid

Automatically exported from code.google.com/p/flexigrid
1 stars 0 forks source link

'name' is Null or not an object with IE7 #111

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
on line 1030
--------------------------------------------------------------------
for ( var s = 0; s < sitems.length; s++) {
  if (p.qtype == '' && sitems[s].isdefault == true) {
      p.qtype = sitems[s].name;
      sel = 'selected="selected"';
  } else {
      sel = '';
  }
  sopt += "<option value='" + sitems[s].name + "' " + sel + " >" + sitems[s].display + "&nbsp;&nbsp;</option>";
}
--------------------------------------------------------------------

I think the problem is due to the fact that IE7 takes s like a var and not like 
a counter. To fix it, replace "for (var s = 0..." by "for (s = 0..."

Ludo

Original issue reported on code.google.com by LudoMa...@gmail.com on 29 Feb 2012 at 4:55

GoogleCodeExporter commented 9 years ago
I'm getting the same issue in one of my pages (oddly enough, other pages that 
use Flexigrid don't exhibit this problem.)

Removing 'var' didn't fix the issue for me. I still have it.

Original comment by Jordan.G...@gmail.com on 23 Aug 2013 at 4:39

GoogleCodeExporter commented 9 years ago
Fixed the issue! I had a comma on my last Array Item in colModel: [ {arr1}, 
{arr2}, <- Needed to remove that comma ],

Original comment by Jordan.G...@gmail.com on 23 Aug 2013 at 4:41