Stringsetting.async.contentType

Overview[ depends on jquery.ztree.core js ]

When Ajax sending data to the server, use this content-type. It is valid when [setting.async.enable = true]

Default:"application/x-www-form-urlencoded"

String Format

contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.

contentType = "application/json", means: the sending data format is "json" format. (for .Net)

Examples of setting

1. set the sending data format to "json" format.

var setting = {
	async: {
		enable: true,
		contentType: "application/json",
		url: "http://host/getNode.php",
		autoParam: ["id", "name"]
	}
};
......