766:86289b0c4a27 | 767:08c0343b622b |
---|---|
126 dataType: 'json', | 126 dataType: 'json', |
127 url: url, | 127 url: url, |
128 cache: false, | 128 cache: false, |
129 data: data, | 129 data: data, |
130 type: 'POST', | 130 type: 'POST', |
131 success: function(data, status, xhr) { | 131 success: function(data) { |
132 if (data.error) { | 132 if (data.error) { |
133 console.log('delete: ' + data.msg); | 133 console.log('delete: ' + data.msg); |
134 alert('Fout: ' + data.msg); | 134 alert('Fout: ' + data.msg); |
135 } else { | 135 } else { |
136 console.log('delete: success'); | 136 console.log('delete: success'); |
147 dataType: 'json', | 147 dataType: 'json', |
148 url: url, | 148 url: url, |
149 cache: false, | 149 cache: false, |
150 data: data, | 150 data: data, |
151 type: 'POST', | 151 type: 'POST', |
152 success: function(data, status, xhr) { | 152 success: function(data) { |
153 if (data.error) { | 153 if (data.error) { |
154 console.log('insert: ' + data.msg); | 154 console.log('insert: ' + data.msg); |
155 alert('Fout: ' + data.msg); | 155 alert('Fout: ' + data.msg); |
156 } else { | 156 } else { |
157 console.log('insert: success'); | 157 console.log('insert: success'); |