The problem is that the TabConainer inside the Dialog is empty after opening although `selected="true"` is given (see the screenshot below). The content is called with dojo/html `html.set(node, contentHTML, {parseContent: true});`

When changing the tab by clicking on another one the content appears and the class "dijitVisible" is set for this div as it should be from the beginning. The attribute `nested="true"` is necessary since otherwise three select bars are shown over the tabContainer.

What can I do so that the content appears from the start on?

```html
<div data-dojo-type="dijit/Dialog" id="formDialog" data-dojo-id="formDialog" title="Edit member data">
    <div id="formContent" class="dijitDialogPaneContentArea" data-dojo-attach-point="formContent">
    </div>
</div>

```

![Empty content](https://i.stack.imgur.com/NO0RO.png)

**Update:**

Here is the whole javascript for getting the content

```js
getForm = function(formID, urlAction){

    var contentHTML;
    var xhrArgs = {
        url: urlAction,
        handleAs: "text",
        load: function(data){
            contentHTML = data;
        },
        error: function(error){
            contentHTML = text_error_unexpected + ": " + error;
        },
        handle: function(error, ioargs){
            var node = dom.byId(formID);
            html.set(node, contentHTML, {parseContent: true});
        }
    }

    var deferred = dojo.xhrGet(xhrArgs);
};

```

**Update 2:**
This is the content that gets called and inserted in the above div "formContent" (I thought I make the description as simple as possible and lost some details on the way)

```html
<div id="form" data-dojo-type="dijit/form/Form" data-dojo-attach-point="form" encType="multipart/form-data" action="#">
    <div style="width: 450px; height: 370px;">
        <div data-dojo-type="dijit/layout/TabContainer" nested="true">
            <div data-dojo-type="dijit/layout/ContentPane" title="Personal data" selected="true">
                Content 1
            </div>
            <div data-dojo-type="dijit/layout/ContentPane" title="Detailed data">
                Content 2
            </div>
            <div data-dojo-type="dijit/layout/ContentPane" title="Contact data">
                Content 3
            </div>
        </div>
    </div>
</div>

```