Add column witch own ajax call

Add column witch own ajax call

pejotpejot Posts: 3Questions: 2Answers: 0

Hi, i need add to table new column witch new ajax call.
Please help because i don't now how.

<script type="text/javascript">
      $(document).ready(function() {
        var table = $('#example').DataTable( {
            "processing": true,
            "serverSide": true,
            "ajax": "server.php",
            "rowsGroup": [0,1,2],
            
            columns: [
            
                { data: "0" },
                { data: "1" },
                { data: "2" },
                { data: "3" },
                { data: "4" },
                { data: "5" },
                { data: "6" },
                { data: "7" },
                { data: "8" },
                { data: "9" },
                { data: "10" },
                { data: "11" },
                {
                data: null,
                
                },
                
            ],
            columnDefs: [
                { targets: ["12"], 
                  "render": function( ) {
                    $.ajax({
                      dataType: "json",
                      url: "mssql.php",
                    }); 
                                
                        
                    },  
                
                
                },
                
            ],
            
            
            } );
            
          } );


      </script>
This discussion has been closed.