4880 url: url, |
4880 url: url, |
4881 cache: false, |
4881 cache: false, |
4882 data: data, |
4882 data: data, |
4883 async: false, |
4883 async: false, |
4884 type: 'POST', |
4884 type: 'POST', |
4885 success: function(data, status, xhr) { |
4885 success: function(data) { |
4886 console.log('saveRecord(' + goback + ') success'); |
4886 if (data.error) { |
|
4887 console.log('saveRecord(' + goback + ') error ' + data.msg); |
|
4888 alert('SQL fout: ' + data.msg); |
|
4889 } else { |
|
4890 console.log('saveRecord(' + goback + ') success'); |
|
4891 } |
4887 if (goback) |
4892 if (goback) |
4888 window.location.href = my_return; |
4893 window.location.href = my_return; |
4889 else |
4894 else |
4890 window.location.href = |
4895 window.location.href = |
4891 'prod_export.php?record=' + my_record + '&return=' + my_return + '&select=' + my_select + '&code=' + dataRecord.code + '&name=' + dataRecord.name + |
4896 'prod_export.php?record=' + my_record + '&return=' + my_return + '&select=' + my_select + '&code=' + dataRecord.code + '&name=' + dataRecord.name + |