jgdoncel
12/4/2013 - 3:03 PM

Cambiar envío de peticiones jquery.datatables de GET a POST

Cambiar envío de peticiones jquery.datatables de GET a POST

        "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
//            $.getJSON( sSource, aoData, function (json) {
//                if(json.error == 'session_out'){
//                    document.location.href='index.php?msg=session_out';
//                } else {
//                    fnCallback(json)
//                }
//            });

            $.post(sSource, aoData, function(json) {
                if(json.error == 'session_out'){
                    document.location.href='index.php?msg=session_out';
                } else {
                    fnCallback(json)
                }
            }, "json");
        },