Forum

May 22nd, 2014
A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

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

Topic RSS Related Topics
all usage of buildSelect should be inside of $.ajax.success
06/08/2011
18:27
OlegK
Germany
Member
Forum Posts: 1229
Member Since:
10/08/2009
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
tony
Sofia, Bulgaria
Moderator
Forum Posts: 7620
Member Since:
30/10/2007
Offline

Absolutley.

Tony

For professional UI suites for PHP, ASP.NET and ASP.NET MVC visit us at our commercial products site - trirand.net - by the very same guys that created jqGrid.
Forum Timezone: Europe/Sofia

Most Users Ever Online: 215

Currently Online:
74 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1229

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11263

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10471

Posts: 30977

Newest Members: Krishna, adamf, klimats, JAZR, jterlouw951, stevetriand

Moderators: tony (7620), Rumen[Trirand] (81)

Administrators: admin (61)

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information