can we pass parameter in server side pagination in ajax call

can we pass parameter in server side pagination in ajax call

SandeepMSandeepM Posts: 28Questions: 0Answers: 0
edited July 2012 in General
$(document).ready(function() {
var oTable = $('#example').dataTable({
"bJQueryUI": true,
"bAutoWidth": true,
"sScrollY": "700px",
"bStateSave": true,
"iDisplayLength": 50,
"oLanguage": {
"sLengthMenu": 'Display '+
'50'+
'100'+
'200'+
' records'
},
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/EF/common/js/TableTools-2.0.3/TableTools-2.0.3/media/swf/copy_csv_xls_pdf.swf"
},
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "/EF/reports/test/form/frmReportPendingMscitShareDtlsJson.jsp",
"aoColumns": [
{ "mDataProp": "BatchName" },
{ "mDataProp": "Course" },
{ "mDataProp": "Role" },
{ "mDataProp": "Mode" },
{ "mDataProp": "Installment" },
{ "mDataProp": "NoofCenters" },
{ "mDataProp": "Totalshare" }
]
} );
} );\



this is the code in which i want to p[ass one int and one string parameter /EF/reports/test/form/frmReportPendingMscitShareDtlsJson.jsp
on this page . How can I do that?

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    edited July 2012
    With fnServerParams - http://datatables.net/release-datatables/examples/server_side/custom_vars.html

    Allan
  • SandeepMSandeepM Posts: 28Questions: 0Answers: 0
    k I got it thanks.
This discussion has been closed.