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: Raymond Date: July 20, 2003


perhaps i don't get it right...

Let's assume that you have a tabpane with 3 tabpages,
how will you get 3 tabpanes (just like the original one) with selectedindex (1 and 2 and 3)
on your printed page by a simple stylesheet change?

thank you,

From: Erik Arvidsson
Sent: July 19, 2003
Subject: Re:Tabpanes

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">



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++) {
cloned_tabpanes[z] = el.cloneNode(true);
cloned_tabpanes[z].id="cloned_tabpanecopy_" + z + "_" + el.id;
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,


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