var formData = {
data1: 'data 1',
dataN: 'data N',
}
btn.onmousedown = function(e) {
$.ajax({
type: "POST",
url: 'url',
dataType: 'json',
data: formData, // отравляемые данные
success: function (data, textStatus, jqXHR) {
//
},
error: function(xhr, status, error){
//
}
});
};
Чё-то это как-то нудно...
var timeoutID = scope.setTimeout(function[, delay, param1, param2, ...]);
delay - Optional
The time, in milliseconds (thousandths of a second), the timer should wait before the specified function or code is executed. If this parameter is omitted, a value of 0 is used, meaning execute "immediately", or more accurately, as soon as possible. Note that in either case, the actual delay may be longer than intended; see Reasons for delays longer than specified below.
sed -n -e '/CREATE TABLE.*mytable/,/CREATE TABLE/p' full.dump > mytable.dump
mysql --one-database db_to_restore < full.dump