Part of the EllisLab Network
   
32 of 34
32
Ignited DataTables
Posted: 26 January 2012 12:01 AM   [ Ignore ]   [ # 311 ]  
Summer Student
Total Posts:  5
Joined  06-25-2010

http://codeigniter.com/forums/viewthread/160896/P30/#833732

my javascript in header is as follow

[removed] 
  $(document).ready(function() {
  $(’#example’).dataTable( {
  “bProcessing”: true,
  “aaSorting”: [[ 1, “desc” ]],
  “bServerSide”: true,
  “sAjaxSource”: “<?php echo base_url(); ?>poli/poliumumlist”,
  “sScrollY”: 200,
  “bJQueryUI”: true,
  “sPaginationType”: “full_numbers”
  } );
  } );

  function fnShowHide( iCol ) {
  var oTable = $(’#example’).dataTable();
 
  var bVis = oTable.fnSettings().aoColumns[iCol].bVisible;
  oTable.fnSetColumnVis( iCol, bVis ? false : true );
  }
[removed]


the result from /poli/poliumumlist is a below
{“sEcho”:0,“iTotalRecords”:“4”,“iTotalDisplayRecords”:“4”,“aaData”:[[“7”,“24 Jan 2012”,“005000430”,“Sutono”,“L”,“41”,“Ya”,null],[“2”,“24 Jan 2012”,“005000110”,“Sudrajat”,“L”,“31”,“Ya”,“Mario”],[“1”,“23 Jan 2012”,“005000120”,“Sutini”,“P”,“22”,“Ya”,“Isabel”],[“6”,“23 Dec 2011”,“099000231”,“Agung”,“L”,“27”,“Ya”,“Mario”]]}

Profile
 
 
Posted: 26 January 2012 12:40 AM   [ Ignore ]   [ # 312 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  07-15-2010

and what is your controller code?

 Signature 

Ignited Datatables

Profile
 
 
Posted: 02 February 2012 09:11 AM   [ Ignore ]   [ # 313 ]  
Summer Student
Total Posts:  2
Joined  02-02-2012

please help

why this code is work for me

$(document).ready(function() 
    

        
$('#sortable_table').dataTable({
            
"sScrollY"430,
            
"bJQueryUI"true,
            
"sPaginationType""full_numbers",
            
"bProcessing"true,
            
"bServerSide"true,
            
"sAjaxSource""<?php echo base_url(); ?>index.php/customers/getall"
        
});
    
}); 

and this code is’nt work

$(document).ready(function() 
    

        
$('#sortable_table').dataTable({
            
"sScrollY"430,
            
"bJQueryUI"true,
            
"sPaginationType""full_numbers",
            
"bProcessing"true,
            
"bServerSide"true,
            
"sAjaxSource""<?php echo base_url(); ?>customers/getall"
        
});
    
}); 

is there need setup the route ?
thanks.

Profile
 
 
Posted: 03 February 2012 12:16 AM   [ Ignore ]   [ # 314 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  07-15-2010
Ferry Lukito - 02 February 2012 09:11 AM

please help

why this code is work for me

$(document).ready(function() 
    

        
$('#sortable_table').dataTable({
            
"sScrollY"430,
            
"bJQueryUI"true,
            
"sPaginationType""full_numbers",
            
"bProcessing"true,
            
"bServerSide"true,
            
"sAjaxSource""<?php echo base_url(); ?>index.php/customers/getall"
        
});
    
}); 

and this code is’nt work

$(document).ready(function() 
    

        
$('#sortable_table').dataTable({
            
"sScrollY"430,
            
"bJQueryUI"true,
            
"sPaginationType""full_numbers",
            
"bProcessing"true,
            
"bServerSide"true,
            
"sAjaxSource""<?php echo base_url(); ?>customers/getall"
        
});
    
}); 

is there need setup the route ?
thanks.

maybe you didn’t setup aoColumns?

 Signature 

Ignited Datatables

Profile
 
 
Posted: 03 February 2012 02:23 AM   [ Ignore ]   [ # 315 ]  
Grad Student
Avatar
Rank
Total Posts:  99
Joined  03-26-2011

Probably he didnt / couldnt setup .htaccess file.

 Signature 

Ignited Datatables

Profile
 
 
Posted: 03 February 2012 02:27 AM   [ Ignore ]   [ # 316 ]  
Summer Student
Total Posts:  2
Joined  02-02-2012

@cryogenix thanks..

ηυмвєяσηє - 03 February 2012 02:23 AM

Probably he didnt / couldnt setup .htaccess file.

i think so, i will check it.

thanks so much

Profile
 
 
Posted: 09 February 2012 08:16 PM   [ Ignore ]   [ # 317 ]  
Summer Student
Total Posts:  9
Joined  02-04-2010

if user has JavaScript turned off will this library still work?
since produce_output function outputs json encoded string, how to change it to output html for progressive enhancement.
a plain HTML table, drawn for the benefit of people who dont have JavaScript enabled
thanks

Profile
 
 
Posted: 12 February 2012 11:08 PM   [ Ignore ]   [ # 318 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  07-15-2010

no it will not work.

 Signature 

Ignited Datatables

Profile
 
 
Posted: 14 February 2012 03:18 AM   [ Ignore ]   [ # 319 ]  
Summer Student
Total Posts:  1
Joined  02-14-2012

Is Version 0.6 the last available version?

Profile
 
 
Posted: 14 February 2012 08:17 PM   [ Ignore ]   [ # 320 ]  
Grad Student
Avatar
Rank
Total Posts:  88
Joined  07-15-2010

yes.

 Signature 

Ignited Datatables

Profile
 
 
   
32 of 34
32