I have a problem sending my JSON file parameters through HTTP POST method. The file is properly generated but only part of it is sent.
$("#catalogOfService").jqGrid('navGrid',"#catalogOfService_pager").jqGrid('navButtonAdd', '#catalogOfService_pager', {
caption: "Export to Excel",
onClickButton: function () {
var json = $("#catalogOfService").getRowData();
var name = "report_catalogue";
console.log(json);
$.ajax({
type: "POST",
async: false,
url: "ExportCatalogueExcell.php",
data: {
name: name,
data: json,
},
success: function(result)
{
},
success: function(e){
setTimeout(function() {
console.log(yeah);
window.open("../tmp/" + name + '.csv');
}, 1000);
}
});
}
});