Datatables in modal windows can not get json data form server side

Datatables in modal windows can not get json data form server side

holalaholala Posts: 1Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
I click a button call a bootstrap modal,and modal content get by remote.
the remote content has datatable,the data source sets by ajax,but the ajax can not run.
I don't know why?
Please HELP! Thanks
my modal window code:





ID
Col1
Col2
Col3




Empty







$(document).ready(function () {
$("#purchase-grid").dataTable({
"bProcessing": true,
"bServerSide": true,
//ajax invoke json
"sAjaxSource": "js/data/devices-onsale.json",
"sPaginationType": "bootstrap",
"sScrollY": 300,
"sScrollX": "100%",
"sScrollXInner": "100%"
});
});

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Please see: http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Allan
This discussion has been closed.