title: Dojo Widgets not rendering when returned in response to XhrPost
body: <p>I am trying to capture the selected item in a Dijit Tree widget to render remaining part of the web page. Here is the code that captures the selected item and sends it to Django backend:</p>
  
  <pre><code>      &lt;div dojoType="dijit.Tree" id="leftTree" store="leftTreeStore" childrenAttr="folders" query="{type:'folder'}" label="Explorer"&gt;
        &lt;script type="dojo/method" event="onClick" args="item"&gt;
          alert("Execute of node " + termStore.getLabel(item));
          var xhrArgs = {
            url: "/load-the-center-part-of-page",
            handleAs: "text",
            postData: dojo.toJson(leftTreeStore.getLabel(item), true),
            load: function(data) {
              dojo.byId("centerPane").innerHTML = data;
              //window.location = data;
            },
            error: function(error) {
              dojo.byId("centerPane").innerHTML = "&lt;p&gt;Error in loading...&lt;/p&gt;";
            }
          }
          dojo.byId("centerPane").innerHTML = "&lt;p&gt;Loading...&lt;/p&gt;";
          var deferred = dojo.xhrPost(xhrArgs);
        &lt;/script&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>The remaining part of the page contains HTML code with dojo widgets. This is the code sent back as 'response' to the select item event. Here is a snippet:</p>
  
  <pre><code>&lt;div dojoType="dijit.layout.TabContainer" id="tabs" jsId="tabs"&gt;
   &lt;div dojoType="dijit.layout.BorderContainer" title="Dashboard"&gt;
     &lt;div dojoType="dijit.layout.ContentPane" region="bottom"&gt;
      first tab
     &lt;/div&gt;
   &lt;/div&gt;
   &lt;div dojoType="dijit.layout.BorderContainer" title="Compare"&gt;
    &lt;div dojoType="dijit.layout.ContentPane" region="bottom"&gt;
      Second Tab
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It renders this html 'response' but without the dojo widgets. Is handleAs: "text" in XhrPost the culprit here?</p>