1. change csv report download response MIME header from "content-type:text/csv" to "application/octet-stream" since I see this in chrome dev tools when accessing everything http file server
but it still fails in chrome
2. report all has less data then search for single offer, 今日头条
发现是jdbc返回数据限制了行数,已修改。
3. make submit a function :
$("#buy").on("click", function() {
var EditArray = GetEditArray();
var tablename = getTableNameId().tablename;
var id = getTableNameId().id;d
var postdata = ReturnJsonStr("update", tablename, "", id, EditArray);
var successfunction = editsuccess;
console.log("tablename : " + tablename + " \n id: " + id);
console.log("\n postdata : "+ postdata + " \n successfunction :" + successfunction);
// debugger;
ajaxset(postdata, successfunction);
});