Is there any way to make the TableTools smessage dynamic without reloading the page?
Is there any way to make the TableTools smessage dynamic without reloading the page?
I have a dropdown list with the months the year. I'd like to display it on the smessage. I've put a function the the change and it populates the variable. I was wondering if there's a way to set this outside of the document.ready function.
"oTableTools": {
"sSwfPath": "/admin/03/reports/swf/copy_csv_xls_pdf.swf",
"aButtons": [
"xls",
"pdf",
{
"sExtends": "print",
"sMessage": "
" + month + "
"
}
]
}
Replies
I've found a workaround that works for me. Maybe it can be some help to others. On the change event of my parameter, I add a div to the table:
$('#bdate').change(function () {
imonth = $('#bdate').find('option:selected').text();
$("div").remove(".Print2");
$('#example').prepend('
');
table.draw();
});