Forum


21:47

07/03/2010

hey,
I have one problem with jqGrid..
function: http://wklej.to/mMUH
sample data: http://wklej.to/hiN7/text
And I'm getting the error:
Uncaught TypeError: Cannot read property 'length' of undefinedAny ideas ?
19:58

Moderators
30/10/2007

Hello
colModel: [
{ name: 'id', index: 'id', width: 55 },
{ name: 'name', index: 'name', width: 100 },
{ name: 'level', index: 'level', width: 80 }, <===EROROR
],
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Are you saying that the comma after the last row is an error? Commas aren't required after the last item, but they're allowed and not an error.
Or are you saying that something else is the problem?
Jonathan, JonathansCorner.com
13:27

10/08/2009

In the next vesrion of JavaScript (ECMAScript 4) it will be allowed to use commas like this "},]" (see "Trailing commas" of this overview), but it is the error in the curent version of JavaScript (ECMA-262).
I recommend you to use http://www.jslint.com/ to verify your JavaScript code.
Oleg
Most Users Ever Online: 715
Currently Online:
177 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66