HOW TO: show/hide details where details are not in the datatable itself.
HOW TO: show/hide details where details are not in the datatable itself.
mediabros.
Posts: 2Questions: 0Answers: 0
The Case:
I have some records in a datatable which i generated by a php loop. i am using the show/hide details function.
The data that is in the detailbox (visible when a user clicked on the plus icon) is still the data from the default example.
[code] var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';
sOut += 'Extra info:And any further details here (images etc)';
sOut += '';
[/code]
It is getting data from a table cell g.e. '+aData[4]+' and some of it is hardcoded.
What i want is to user is a php variable instead of the data that is already in a datacell.
Is it possible with php? how should i approach this?
I have some records in a datatable which i generated by a php loop. i am using the show/hide details function.
The data that is in the detailbox (visible when a user clicked on the plus icon) is still the data from the default example.
[code] var aData = oTable.fnGetData( nTr );
var sOut = '';
sOut += 'Rendering engine:'+aData[1]+' '+aData[4]+'';
sOut += 'Link to source:Could provide a link here';
sOut += 'Extra info:And any further details here (images etc)';
sOut += '';
[/code]
It is getting data from a table cell g.e. '+aData[4]+' and some of it is hardcoded.
What i want is to user is a php variable instead of the data that is already in a datacell.
Is it possible with php? how should i approach this?
This discussion has been closed.
Replies
Allan
Thanks for the answer, i will give the hidden columns a shot. I assume you hide the columns with css is that correct?
Allan