Thanks to answer, by the way I've done it, in my .jsp I put :
[code]
Retour
[/code]
And in a .js include I've put :
[code]
var printEnd = function(datatableName, bouttonDiv) {
/* TableTools.fnGetInstance('traitement')._fnPrintEnd(e); */
var that = TableTools.fnGetInstance(datatableName);
var oSetDT = TableTools.fnGetInstance(datatableName).s.dt;
var oSetPrint = TableTools.fnGetInstance(datatableName).s.print;
var oDomPrint = TableTools.fnGetInstance(datatableName).dom.print;
/* Show all hidden nodes */
TableTools.fnGetInstance(datatableName)._fnPrintShowNodes();
It's working well but if you do something to TableTool it should be better of course. Waiting for that this solution is not too bad ( and not instrusive, I've disabled the escape key manualy to keep the control on the "back div" but it should be good to put a parameter to the print method to disable de Escape key).
Is it possible to know when you want to put the "Tab feature" in TableTools ?
I would like to put it in right now :-) However realistically it might be a little while - on the order of months, since i'm in the middle of working on DataTables 1.8 at the moment. You can keep up to date with the releases RSS feed: http://www.datatables.net/rss.xml , and Twitter: @DataTables .
Combining current post as a feature request, and this one (http://datatables.net/forums/comments.php?DiscussionID=3967) as an implementation hint, I came up with this solution. It is just a hack, should better be integrated into next version of TableTools.
Hey Allan. Is there any way to do this yet? Clients are getting confused as to how to get back to the previous page because the instructions disappear. Thanks
Replies
If somebody have a clue.
( I'm looking at the way of putting a button at the top/bottom of my tab and instead of pressing esc press this button )
ps: sorry for my (bad) english.
Allan
[code]
Retour
[/code]
And in a .js include I've put :
[code]
var printEnd = function(datatableName, bouttonDiv) {
/* TableTools.fnGetInstance('traitement')._fnPrintEnd(e); */
var that = TableTools.fnGetInstance(datatableName);
var oSetDT = TableTools.fnGetInstance(datatableName).s.dt;
var oSetPrint = TableTools.fnGetInstance(datatableName).s.print;
var oDomPrint = TableTools.fnGetInstance(datatableName).dom.print;
/* Show all hidden nodes */
TableTools.fnGetInstance(datatableName)._fnPrintShowNodes();
/* Restore DataTables' scrolling */
if ( oSetDT.oScroll.sX !== "" || oSetDT.oScroll.sY !== "" )
{
TableTools.fnGetInstance(datatableName)._fnPrintScrollEnd();
}
/* Restore the scroll */
window.scrollTo( 0, oSetPrint.saveScroll );
/* Drop the print message */
if ( oDomPrint.message !== null )
{
document.body.removeChild( oDomPrint.message );
oDomPrint.message = null;
}
/* Styling class */
J(document.body).removeClass( 'DTTT_Print' );
/* Restore the table length */
oSetDT._iDisplayStart = oSetPrint.saveStart;
oSetDT._iDisplayLength = oSetPrint.saveLength;
oSetDT.oApi._fnCalculateEnd( oSetDT );
oSetDT.oApi._fnDraw( oSetDT );
J(document).unbind( "keydown", TableTools.fnGetInstance(datatableName).s.print.funcEnd );
TableTools.fnGetInstance(datatableName).s.print.funcEnd = null;
J('#' + bouttonDiv).addClass("hide");
};
[/code]
It's working well but if you do something to TableTool it should be better of course. Waiting for that this solution is not too bad ( and not instrusive, I've disabled the escape key manualy to keep the control on the "back div" but it should be good to put a parameter to the print method to disable de Escape key).
Is it possible to know when you want to put the "Tab feature" in TableTools ?
Allan
{ "sExtends": "print",
"sMessage": "Your original message"
+ " "
}
Regards,
Ray
Is this resolved ?
--
gnumonk
Thanks!
Allan