Array(String) / JSONsetting.async.otherParam

Overview[ depends on jquery.ztree.core js ]

The query parameters of the Ajax request. (key - value) It is valid when [setting.async.enable = true]

Default: [ ]

Array(String) Format

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!!)

JSON Format

Use JSON hash data to set the key-value pairs. e.g. { key1:value1, key2:value2 }

Examples of setting

1. Using Array(String) Format

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

2. Using JSON data Format

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