WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Tabpanes, Raymond, July 19, 2003
     Re:Tabpanes, Erik Arvidsson, July 19, 2003
         Re:Tabpanes, Raymond, July 20, 2003
             Re:Tabpanes, Erik Arvidsson, July 20, 2003
                 Re:Tabpanes, Raymond, July 20, 2003
                     Re:Tabpanes, Raymond, July 26, 2003
                         Re:Tabpanes, Ian Maffett, July 31, 2003

Subject: Re:Tabpanes From: Erik Arvidsson Date: July 19, 2003
Can't you use a print style sheet instead? Seems much simpler

<link type="text/css" rel="stylesheet" media="print" href="my-print-style-sheet.css">

erik

_______________________________________________________

hello,
i would like to print out the tabpane (showing all tab-pages).
To achieve this i wrote a few lines to loop through the tabpane (as many times a tabpane has tab-pages)
and then append the created tabpane-clones - with the appropriate selectedIndex - to the page's body.
-- or would be much better to insertBefore the original one.
When the print function will be called the original tabpanes will be hidden and the clones are going to show up.
I've put my few lines at the very end of the function 'WebFXTabPane'.
--
var cloned_tabpanes = new Array(), z=0;
for (j=0;j<el.childNodes.length-1;j++) {
el.cloneNode(true).tabpane.setSelectedIndex(z);
cloned_tabpanes[z] = el.cloneNode(true);
el.parentNode.appendChild(cloned_tabpanes[z]);
cloned_tabpanes[z].id="cloned_tabpanecopy_" + z + "_" + el.id;
cloned_tabpanes[z].style.display="none";
z++;
}
--
The problem is, that this does not work with nested tabpanes, and perhaps it can be done more simple and better as well.
That's why i'm asking for your help.
thanks in advance,
Raymond.



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