var data = formNm.serializeArray();
data['call_me_submit'] = 1;
$.ajax({
type: "POST",
url: baseDir + 'modules/msimcallme/ajax.php',
data: data,
success: function (data) {
// Вывод текста результата отправки
$(formNm).html(data);
console.log('send-data')
},
error: function (jqXHR, text, error) {
// Вывод текста ошибки отправки
console.log('error')
$(formNm).html(error);
}
});
for(var i = 0; i < response.length; i++){ ... }
var response = {key1: 'property1', key2: 'property2'};
console.log( response.length); // undefined
console.log( Object.keys(response).length); // 2
SET FOREIGN_KEY_CHECKS = 0;
SET UNIQUE_CHECKS = 0;
SET SESSION tx_isolation='READ-UNCOMMITTED';
SET sql_log_bin = 0;
ALTER TABLE pos DISABLE KEYS;
INSERT INTO pos (id, position, url_id, dataset_id) SELECT id, position, url_id, dataset_id from temp_pos;
ALTER TABLE pos ENABLE KEYS;
SET sql_log_bin = 1;
SET UNIQUE_CHECKS = 1;
SET FOREIGN_KEY_CHECKS = 1;
SET SESSION tx_isolation='READ-REPEATABLE';