placing a link in first column displays
placing a link in first column displays
emelianenko
Posts: 18Questions: 0Answers: 0
Hello,
The thing is how to get the first column with a link, which passes a value elsewhere and working on server side processing.
I managed to do it, however it was through letting the column for ID show,
[code]
$sOutput .= '"'.addslashes($aRow['from_country']).'",';
[/code]
which is an unnecessary column that nody needs to see. So ideally would be another column which on clicking passes that value of ID.
One solution I thought was just making the first column, the one that shows the ID, invisible. But it turns out, the HIDE feature does not work. It messes my whole table and not data are shown. Despite having copied it and pasted it from the example. (of course, adapting it to my number of columns and which column i dont want to show)
[code]
$(document).ready(function() {
02. $('#ejemplo1').dataTable( {
03. "aoColumns": [
04. /* id*/ { "bVisible": false },
05. /* from */ null,
06. /* through */ null,
07. /* to*/ null,
08. /* duration */ null,
09. /* to*/ null,
10. /* price */ null
11. ]
12.
13.
14.
15. "bProcessing": true,
16. "bServerSide": true,
17. "bJQueryUI": true,
18. "sAjaxSource": "datatables/php/server_processing_data.php"
19. } );
20.} );
[/code]
So, while on line 159 of the example script for Server Side Processing
[code]
for ( $i=0 ; $i
The thing is how to get the first column with a link, which passes a value elsewhere and working on server side processing.
I managed to do it, however it was through letting the column for ID show,
[code]
$sOutput .= '"'.addslashes($aRow['from_country']).'",';
[/code]
which is an unnecessary column that nody needs to see. So ideally would be another column which on clicking passes that value of ID.
One solution I thought was just making the first column, the one that shows the ID, invisible. But it turns out, the HIDE feature does not work. It messes my whole table and not data are shown. Despite having copied it and pasted it from the example. (of course, adapting it to my number of columns and which column i dont want to show)
[code]
$(document).ready(function() {
02. $('#ejemplo1').dataTable( {
03. "aoColumns": [
04. /* id*/ { "bVisible": false },
05. /* from */ null,
06. /* through */ null,
07. /* to*/ null,
08. /* duration */ null,
09. /* to*/ null,
10. /* price */ null
11. ]
12.
13.
14.
15. "bProcessing": true,
16. "bServerSide": true,
17. "bJQueryUI": true,
18. "sAjaxSource": "datatables/php/server_processing_data.php"
19. } );
20.} );
[/code]
So, while on line 159 of the example script for Server Side Processing
[code]
for ( $i=0 ; $i
This discussion has been closed.