For my print script I need to expand some tables which are not visible (style.display = 'none'). When I go through my site using this script:
var allTables = document.body.getElementsByTagName("TABLE");
for (i=0; i < allTables.length; i++) {
if (allTables.style.display == 'none') {
allTables.style.display='';
}
}
the tables don't show up...
Even when I use TR instead of TABLE in this script they won't show.
An example of the page I'm working on can be found here:
This example shows 1 table, but in reallity it can be 10 tables. So I cannot use their ID.
Can anyone give me a hint on how to show these tables?
Dynamicaly adding a stylesheet won't work either (CSS media)...
RB
var allTables = document.body.getElementsByTagName("TABLE");
for (i=0; i < allTables.length; i++) {
if (allTables.style.display == 'none') {
allTables.style.display='';
}
}
the tables don't show up...
Even when I use TR instead of TABLE in this script they won't show.
An example of the page I'm working on can be found here:
This example shows 1 table, but in reallity it can be 10 tables. So I cannot use their ID.
Can anyone give me a hint on how to show these tables?
Dynamicaly adding a stylesheet won't work either (CSS media)...
RB