Dijit.layout.TabContainer display dijit.layout.ContentPane

dojo.addOnLoad(function() {
    var linktab=dojo.query(".fishEyesItem");
    var lefttab=dijit.byId("navagationTab_left"); // Do not use dojo.query to query, dojo.query returns a object, not the selectchild method
    var leftchild1 = dijit.byId("subtab_left");// 
	linktab.connect("onclick",function(evt) {
		var tabId=this.id;
		var url=this.href;
		var title=this.textContent ? this.textContent : this.innerText;
		console.log(lefttab);
		console.log(leftchild1); 
		 
		lefttab.selectChild(leftchild1,true); 
 
	});
});

Posted by Rudolf at December 16, 2013 - 10:23 AM