Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Uncaught TypeError: Cannot read property 'length' of undefined
07/03/2010
21:47
Avatar
pigmej
New Member
Members
Forum Posts: 1
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

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:  /jquery.jqGrid-3.6.4/js/jquery.jqGrid.min.js:34 Uncaught TypeError: Cannot read property 'length' of undefined

Any ideas ?

09/03/2010
19:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

02/04/2011
00:26
Avatar
JonathansCorner.com
Member
Members
Forum Posts: 4
Member Since:
02/04/2011
sp_UserOfflineSmall Offline

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

Jonathan, JonathansCorner.com

03/04/2011
13:27
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information