javascript - Data tables, get data , js -


i'm using datatables, datatable, receve json api , in js use code...

 // variable send in get// var id = $cookiestore.get('uid');   $(document).ready(function() {             $('#example').datatable( {                 "sdom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",                  "spaginationtype": "bootstrap",                  "bprocessing": true,                   "sajaxsource" : "http://localhost:3347/api/controlerx",                "aocolumns": [                  { "mdata": "1fild"},                  { "mdata": "2fild"},                  { "mdata": "3fild"},                  { "mdata": "4fild"},                  { "mdata": "5fild"},                  { "mdata": "6fild"},                  { "mdata": "7fild"},                  { "mdata": "8fild" }     ] ,     "olanguage": {         "slengthmenu": "_menu_  page"     } 

how can send id in request?

try this

"sajaxsource" :      "http://localhost:3347/api/controlerx?id=" + $cookiestore.get('uid'), 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -