nThs is null Strange
nThs is null Strange
Hi to All, I am having i big problem with DataTables and Codeigniter Framework, i search ins forums and still did'nt figured out.
The Problem is,
I am developing in my localhost machine with zendserver, codeigniter framework, php 5.3. my view file looks like this :
[code]
$(document).ready(function() {
oTable = $('#gridDashboard').dataTable({
"bJQueryUI": false,
"oLanguage": {"sUrl": "css/jquery/tabletools-pt.txt"},
"bLengthChange": false,
"bFilter": false,
"bInfo": true,
"bAutoWidth": true,
"bProcessing": false,
"bPaginate": true,
"sPaginationType": "full_numbers",
"sDom": '<"top">rt<"bottom"iflp<"clear">>'
});
$( oTable.fnGetNodes() ).click( function() {
var iPos = oTable.fnGetPosition( this );
var aData = oTable.fnGetData( iPos );
$("#txtNproj").val(aData[0]);
$("#txtNproj").attr("disabled", true);
$("#txtReferencia").val(aData[1]);
$("#txtReferencia").attr("disabled", true);
} );
} );
div class="container">
<? // Fun
The Problem is,
I am developing in my localhost machine with zendserver, codeigniter framework, php 5.3. my view file looks like this :
[code]
$(document).ready(function() {
oTable = $('#gridDashboard').dataTable({
"bJQueryUI": false,
"oLanguage": {"sUrl": "css/jquery/tabletools-pt.txt"},
"bLengthChange": false,
"bFilter": false,
"bInfo": true,
"bAutoWidth": true,
"bProcessing": false,
"bPaginate": true,
"sPaginationType": "full_numbers",
"sDom": '<"top">rt<"bottom"iflp<"clear">>'
});
$( oTable.fnGetNodes() ).click( function() {
var iPos = oTable.fnGetPosition( this );
var aData = oTable.fnGetData( iPos );
$("#txtNproj").val(aData[0]);
$("#txtNproj").attr("disabled", true);
$("#txtReferencia").val(aData[1]);
$("#txtReferencia").attr("disabled", true);
} );
} );
div class="container">
<? // Fun
This discussion has been closed.
Replies
Allan
But i will explain how the grid is generated.
In the html file using firebug the grid is generate like this
[code]
Nº Proj.
Referencia
Medida / Acção
Estado
Data
Acção
85
020000000085
Estratégias Locais de Desenvolvimento (B)
PA Substituído
2008-07-10
94020000000094Estratégias Locais de Desenvolvimento (B)PA Substituído2008-07-11
150020000000150Estratégias Locais de Desenvolvimento (B)PA Substituído2008-07-16
[/code]
Best Regards Pedro Oliveira
Regards,
Allan
The thing is in my localhost machine the html table is generated like this
[code]
<!-- Heading -->
Nº Proj.ReferenciaMedida / AcçãoEstadoDataAcção
[/code]
but on my produtcion server the header is generate like this .
[code]
Nº Proj.
Referencia
Medida / Acção
Estado
Data
Acção
[/code]
This is so weird because i didn't change anything .
I will see on codeigniter forums.
Thanks allan you help was very well appreciated.
Thank you Very much
In the Developer the library works fine and generates the html table all 100% correct with the thead, tbody.
But when i pass to the production server it stop's working, the html table is not very well generate, it's strange.
So to solve my proble what i did was on the html Library from codeigniter and not the My_table exetension i added the folowing to the template:
[code]
'heading_row_start' => '',
'heading_row_end' => '',
[/code]