programmatically sMessage for print header message

programmatically sMessage for print header message

anandhsanandhs Posts: 3Questions: 0Answers: 0
edited November 2011 in TableTools
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.

Replies

  • anandhsanandhs Posts: 3Questions: 0Answers: 0
    Please help..!! i am stuck in it for 2 days without much success... :(
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    What happens if you make another call to TableTools when one instance already exists on your oTable?
  • SeMITSeMIT Posts: 1Questions: 0Answers: 0
    Hello,
    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
This discussion has been closed.