programmatically sMessage for print header message
programmatically sMessage for print header message
anandhs
Posts: 3Questions: 0Answers: 0
Hi,
I have a need to set different 'sMessage' everytime the Print table option is used for my datatables.
My tabletools object initialization is like so -
[code]
oTableTools = new TableTools( oTable, {
"aButtons": [
{
"sButtonText":"Print Table",
"sExtends": "print",
"sMessage": "
"
+ " "
+ "
"
+ "
"
+ document.getElementById('textArea').innerHTML
}
]
} );
[/code]
Could anyone share the programmatic way of doing so. ?
Thanks in Advance.
I have a need to set different 'sMessage' everytime the Print table option is used for my datatables.
My tabletools object initialization is like so -
[code]
oTableTools = new TableTools( oTable, {
"aButtons": [
{
"sButtonText":"Print Table",
"sExtends": "print",
"sMessage": "
"
+ " "
+ "
"
+ "
"
+ document.getElementById('textArea').innerHTML
}
]
} );
[/code]
Could anyone share the programmatic way of doing so. ?
Thanks in Advance.
This discussion has been closed.
Replies
can you try without the .innerHTML,
it seems to workfor me,
and also (i think you have done it) check if the ID : 'textArea' exist in your html.
Serge