Datatables in modal windows can not get json data form server side
Datatables in modal windows can not get json data form server side
holala
Posts: 1Questions: 0Answers: 0
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%"
});
});
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%"
});
});
This discussion has been closed.
Replies
Allan