WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 tab pane -dynamic add and remove, Chuck, January 24, 2005
     Re:tab pane -dynamic add and remove, Erik Arvidsson, February 8, 2005
         Re:tab pane -dynamic add and remove, Robert, February 22, 2005

Subject: Re:tab pane -dynamic add and remove From: Erik Arvidsson Date: February 8, 2005
Here is the code you need. You need to create the DOM nodes first and then call addTabPage.

function add() {
var tabPaneEl = document.getElementById("tabPane1");
var tabPage = document.createElement("div");
tabPage.className = "tab-page";
var tabPageHeader = document.createElement("h2");
tabPageHeader.className = "tab";
tabPageHeader.appendChild(document.createTextNode("Header"));
tabPage.appendChild(tabPageHeader);
tabPage.appendChild(document.createTextNode("Content"));
tabPaneEl.appendChild(tabPage);
tp1.addTabPage(tabPage);
}

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX