Differences
This shows you the differences between two versions of the page.
Next revision Both sides next revision | |||
wiki:upgrade_from_3.6.4_to_3.6.5 [2010/05/20 12:59] tony created |
wiki:upgrade_from_3.6.4_to_3.6.5 [2010/05/20 13:14] tony |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Some | + | ====== Upgrade from 3.6.4 to 3.6.5 ====== |
+ | You should read this upgrade when you use JSON response from the server.\\ \\ | ||
+ | |||
+ | With version 3.6.5 we switch from ajax complete to ajax success event. This will reflect in certain systems not to display the data. \\ \\ | ||
+ | What you need to know if the data is not displayed when you upgrade from 3.6.4 to 3.6.5 version \\ \\ | ||
+ | |||
+ | ===== Valid JSON response ===== | ||
+ | |||
+ | |||
+ | Your json response should be correct json formatted string. This mean that if your response look like this: | ||
+ | <code javascript> | ||
+ | { | ||
+ | total: "xxx", | ||
+ | page: "yyy", | ||
+ | records: "zzz", | ||
+ | rows : [ | ||
+ | {id:"1", cell:["cell11", "cell12", "cell13"]}, | ||
+ | {id:"2", cell:["cell21", "cell22", "cell23"]}, | ||
+ | ... | ||
+ | ] | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | This will not work. \\ \\ | ||
+ | |||
+ | In order to display the data in the grid, you should properly define the json response - i.e | ||
+ | |||
+ | <code javascript> | ||
+ | { | ||
+ | "total": "xxx", | ||
+ | "page": "yyy", | ||
+ | "records": "zzz", | ||
+ | "rows" : [ | ||
+ | {"id" :"1", "cell":["cell11", "cell12", "cell13"]}, | ||
+ | {"id" :"2", "cell":["cell21", "cell22", "cell23"]}, | ||
+ | ... | ||
+ | ] | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | As can be seen every property should be quoted. \\ |