var tc = new TabContainer(
{
style: "height: 100%; width: 100%;"
}, "tc1-prog");
var cp2 = new ContentPane(
{
title: "First Tab",
href: "page1.html",
});
tc.addChild(cp2);
var cp2 = new ContentPane({
title: "Second Tab",
href: "page2.html",
refreshOnShow: true
});
tc.addChild(cp2);
In this case when "Second Tab" is selected, it refreshes every time. Refresh basically calls the dojo ready function on the page same as when loading the page using F5. "First tab" on the other hand will only load the first time its selected and will not refresh in later selects
No comments:
Post a Comment