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 26, 2003


by the way, don't you have any new idea how to solve this problem a smart way?




From: Raymond
Sent: July 20, 2003
Subject: Re:Tabpanes


This way we are 'loosing' the header tab-rows (showing the selected tab) from the top of the 2nd, 3rd... tab-pages.
To avoid this I've been trying to clone the whole panes - looping through the tabs and selecting them.

Thanks for devoting your time and energy to solve that problem.

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

The look and feel is set using style sheets. By defining a print style sheet you can override how to display the panes when printing. Something like this:

.tap-page {
display: block !important;

Maybe I'm just missing what you are trying to do?



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