title: Custom widget defined in an HTML page loaded as dojox.layout.contentpane using href and inserted as tab page not parsing custom widgets
body: <p>I was trying to add a new tab page using <code>tab.addchild</code> programmatically after creating <code>dojox.layout.contentpane</code> with <code>href</code> attribute.  </p>
  
  <p>Following is the sample snippet of the relevant code (<code>tabMain</code> is tab control placed in the page)</p>
  
  <pre><code>  dijit.byId('tabMain').addChild(new dojox.layout.ContentPane({
       title: 'My page',
       href: 'country.jsp',
       closable: true,
       parseOnLoad: true,
       postCreate: function () {
           dojo.parser.parse();
       }));
  </code></pre>
  
  <p>This <code>country.jsp</code> has custom widget (that contain two standard dijit widgets).<br>
  But the custom widgets are not parsed  and hence I am not getting the custom widget properly loaded, where as other standard dijits mentioned in the <code>country.jsp</code> loads perfectly.</p>
  
  <p>To rule out the problem with my page and custom widget declarations,  I put this custom widget directly in a page without loading inside a contentpane/tab (and loaded inside as dialog page), it works fine.  So, I assume that the dojo parser is not parsing the custom widget, when I load it in the content pane as shown in the above code. </p>
  
  <p>Does this mean, custom widget cannot be used for such type of loading or Am I missing anything extra to force the parser to work?  I tried running parser on load, downloadend, downloadstart, ready events, but with no luck.</p>
  
  <p>Any help would be appreciated.</p>