The query parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]
Default: [ ]
Can be an empty array. e.g. [ ]. The array should contain key value pairs, e.g. [key, value]. (Either or [key] or [key, value, key] is wrong!!)
Use JSON hash data to set the key-value pairs. e.g. { key1:value1, key2:value2 }
var setting = {
async: {
enable: true,
url: "http://host/getNode.php",
otherParam: ["id", "1", "name", "test"]
}
};
when zTree sends the ajax request, the query string will be like this: id=1&name=test
var setting = {
async: {
enable: true,
url: "http://host/getNode.php",
otherParam: { "id":"1", "name":"test"}
}
};
when zTree sends the ajax request, the query string will be like this: id=1&name=test