I try to set the value of Tabs such as following code:
<script>
var subMenus = [{"Link":"/aaa.do","Title":"title1"}];
var tabs = "";
for( var i=0;i<subMenus.length;i++ ){
tabs = tabs + "<a id=\"tab"+i+"\" dojoType=\"LinkPane\" href=\""+subMenus[i].Link+"\" refreshOnShow=\"true\">"+subMenus[i].Title+"</a>";
}
document.getElementById("mainTabContainer").innerHTML = tabs;
</script>
It doesn't work, just show the text without applying css. How can I make the tabs dynamic? Thanks!