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_Related Related Topics sp_TopicIcon
all usage of buildSelect should be inside of $.ajax.success
06/08/2011
18:27
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hallo Tony,

in the jqGrid version 4.1.2 there are two places where buildSelect will be used: in the line 354 of the grid.common.js it will be used inside of success handler of $.ajax and in the line 324 of the grid.custom.js inside of complete handler of $.ajax. It follows to the problem that the the paramer of the buildSelect function can be either the data from the server response converted corresponding to the Content-Type of the HTTP header and the dataType parameter. So the parameter can be either a string or object/array depend on the contain of the HTML/JSON response. It can be additionally an object where responseText property contains the main data. So to make the program working one have to test the type and the property of the input parameter before the data could be processed.

The answer described one from the problems.

Additional problem in the current code of grid.custom.js is that the buildSelect will be called also in case of the error response from the server. In the case the input data has absolutely another format. So I suggest to change the code of grid.custom.js so that one uses success handler of $.ajax like it is already in the grid.common.js.

Best regards
Oleg 

14/08/2011
11:52
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Absolutley.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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