Welcome Guest, Not a member yet? Register   Sign In
Problem with DataTables CodeIgniter And IE 8
#1

[eluser]pmsfo[/eluser]
Hi to all, i having i small problem with datatables and CI, and i don't know i to solve it.

The problem is:

I am using Datatables http://www.datatables.net/ with CI. I am using Data Tables Ajax source pagination.

In firefox the pagination works like i charm but in IE the grid appear always the message processing.

I am posting the code so someone can help me , and see what i did, maybe his i nice example for datatables with codeigniter.

The Code:

The View :
Code:
[removed]

$(document).ready(function() {

var numeroProjecto;
var oTable;

TableToolsInit.sSwfPath = "swf/ZeroClipboard.swf";
oTable = $('#gridPesquisar').dataTable({
        "bJQueryUI": false,
    "sPaginationType": "full_numbers",
        "oLanguage": {"sUrl": "css/jquery/tabletools-pt.txt"},
        "bStateSave": false, // Grava o estado da Table
        "bLengthChange": true,
    "bFilter": true,
        "iDisplayLength": 10,
    "bSort": true,
    "bInfo": true,
    "bAutoWidth": false,
        "bProcessing": true,
        "bServerSide": true,
        "sDom": 'T<"clear">frtip',
        "aoColumns": [            { "sName": "NÂș" },
                                        { "sName": "Beneficiario" },
                                        { "sName": "Contribuinte" },
                                        { "sName": "Distrito" },
                                        { "sName": "Concelho" },
                                       // { "sName": "Data Candidatura" },
                                        { "sName": "Medida" },
                                        { "sName": "Aviso" },
                    ],

      
       "sAjaxSource": "&lt;?php echo $base_url ?&gt;/index.php/pedidoapoio/paginatePedidoApoio",

        "fnServerData": function ( sSource, aoData, fnCallback ) {
                //REQUIRED: Add a Post variable with the object value
                aoData.push( { "name": "object", "value": "browser" } );
                aoData.push( { "name": "txtNumeroProjectoInicial", "value": document.forms[0].txtNumeroProjectoInicial.value });
                aoData.push( { "name": "txtNumeroProjectoFinal", "value": document.forms[0].txtNumeroProjectoFinal.value });
                aoData.push( { "name": "txtNif", "value": document.forms[0].txtNif.value });
                aoData.push( { "name": "txtBeneficiario", "value": document.forms[0].txtBeneficiario.value });
                aoData.push( { "name": "cmbConcelho", "value": document.forms[0].cmbConcelho.value });
                aoData.push( { "name": "cmbDistrito", "value": document.forms[0].cmbDistrito.value });
                aoData.push( { "name": "cmbMedida", "value": document.forms[0].cmbMedida.value });
                aoData.push( { "name": "cmbAviso", "value": document.forms[0].cmbAviso.value });
                aoData.push( { "name": "cmbParecer", "value": document.forms[0].cmbParecer.value });
                aoData.push( { "name": "txtDataCandidaturaInicial", "value": document.forms[0].txtDataCandidaturaInicial.value });
                aoData.push( { "name": "txtDataCandidaturaFinal", "value": document.forms[0].txtDataCandidaturaFinal.value });
                
                $.ajax( {
                        dataType: 'json',
                        type: "POST",
                        url: sSource,
                        data: aoData ,
                        success: fnCallback
                } );
        },
        
         "fnDrawCallback": function( oSettings ) {
                $('#gridPesquisar tbody tr').click( function() {
        var iPos = oTable.fnGetPosition( this );
                var idPedidoApoio = oSettings.aoData[iPos]._aData[0];
                if(navigator.appName == "Netscape") [removed].href = "index.php/pedidoapoio/candidatura/" + idPedidoApoio;
                if(navigator.appName == "Microsoft Internet Explorer") [removed].href = "pedidoapoio/candidatura/" + idPedidoApoio;
                } );
            }
    });


// first slide down and blink the message box
$("#flashmessage").animate({top: "0px"}, 1000 ).show('fast').fadeIn(300).fadeOut(2000);


} );
});
[removed]

<table id="gridPesquisar" cellpadding="1" cellspacing="2" border="0" style="width:100%"></table>


Messages In This Thread
Problem with DataTables CodeIgniter And IE 8 - by El Forum - 05-25-2010, 08:06 AM
Problem with DataTables CodeIgniter And IE 8 - by El Forum - 05-25-2010, 08:08 AM
Problem with DataTables CodeIgniter And IE 8 - by El Forum - 05-25-2010, 08:09 AM
Problem with DataTables CodeIgniter And IE 8 - by El Forum - 05-25-2010, 08:11 AM
Problem with DataTables CodeIgniter And IE 8 - by El Forum - 05-25-2010, 09:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB