1 <div class="apiDetail">
\r
3 <h2><span>String</span><span class="path">setting.async.</span>contentType</h2>
\r
4 <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
\r
7 <div class="longdesc">
\r
8 <p>When Ajax sending data to the server, use this content-type. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
\r
9 <p>Default:"application/x-www-form-urlencoded"</p>
\r
12 <h3>String Format</h3>
\r
14 <p> contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.</p>
\r
15 <p> contentType = "application/json", means: the sending data format is "json" format. (for .Net)</p>
\r
17 <h3>Examples of setting</h3>
\r
18 <h4>1. set the sending data format to "json" format.</h4>
\r
19 <pre xmlns=""><code>var setting = {
\r
22 contentType: "application/json",
\r
23 url: "http://host/getNode.php",
\r
24 autoParam: ["id", "name"]
\r