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
introducing common div for error and the usage it inside of default loadError implementation
11/06/2012
11:48
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

there are many common problems wrond server response, wrong Content-Type or just other comon errors/exceptions on the server which follows to executing of loadError instead of loadComplete part. The problem is that jqGrid has no standard loadError implementation. New users of jqGrid just copy some simple examples in his code and try "to play" with jqGrid. As the result the users seen just empty grid without any errors.

I see that as the common problem which can be easy solved by introducing default implementation of loadError. In the answers this and this one can find some examples of such implementation. The exact decoding of the server response could be not perfect. It will be enough to decode in any way JSON response and excract body part of HTML response. The results could be shown above the grid inside an additional div.

My suggestion is to add additional jqg_error div which will be direct child of dbox div. One can display errors from implementation of loadError inside the div. In case of the next successful loading the div content could be clear.

I hope that intruduction of the default implementation of loadError will simplify the entrance in jqGrid usage of the new users and make the default simplest implamentation of the grids more rubust.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
23 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