T
Tom de Neef
I copy data to a second window, where it is prepared for proper printing and
copying, via:
function copyTable(source,destin){
secondWindow.document.getElementById(destin).innerHTML =
document.getElementById(source).innerHTML
}
When the source has all style attributes in the elements itself, such as <td
align="right" style="padding-right:4pt">, everything works out fine.
But when attributes are passed via a class reference, such as
<style type ="text/css"> td.rght {text-align:right; padding-right:4pt}
</style>
<td class="rght">
IE seems to pass the style information for each element but FF(6 or 7) does
not copy the style attributes accross. Same problem when I use css pseudo
classes.
I do not understand this and it makes FF unworkable for me.
Do I miss something or is this to be expected?
TIA
Tom
copying, via:
function copyTable(source,destin){
secondWindow.document.getElementById(destin).innerHTML =
document.getElementById(source).innerHTML
}
When the source has all style attributes in the elements itself, such as <td
align="right" style="padding-right:4pt">, everything works out fine.
But when attributes are passed via a class reference, such as
<style type ="text/css"> td.rght {text-align:right; padding-right:4pt}
</style>
<td class="rght">
IE seems to pass the style information for each element but FF(6 or 7) does
not copy the style attributes accross. Same problem when I use css pseudo
classes.
I do not understand this and it makes FF unworkable for me.
Do I miss something or is this to be expected?
TIA
Tom