Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35380

url parameters not working @ server side processing

$
0
0

Hey Allan,

Could you please help me in this .. as it bit urgent..

I need something like this :

mypage.php?title=Hello&name=Joe

$(document).ready(function() {
    $('#example').dataTable( {
        "bServerSide": true,
        "sAjaxSource": "mypage.php",
        "fnServerParams": function ( aoData ) {
            aoData.push( { "name": "title", "value": "Hello" } );
            aoData.push( { "name": "name", "value": "Joe" } );
        }
    } );
} );

But when i am checking @ my mypage.php

echo $_GET['title']; OR echo $_GET['name'];

// even tried below

echo $_GET['name']; OR echo $_GET['value'];

But i am not getting its value.

USING 1.10.2

Where i am wrong


Viewing all articles
Browse latest Browse all 35380

Trending Articles