var form = {foo: 'bar'},
requests = [],
index,
$xhr;
for (var index = 0; index <= 5; index++) {
$xhr = $.post('myurl', {'form': form, 'index': index});
$xhr.done(function (data) {
console.log('request done');
});
requests.push($xhr);
}
$.when.apply($, requests).done(function () {
console.log('all done');
})
setcookie("coded");$_COOKIE['coded']= $code_capcha;
dataType: 'jsonp',При чем тут jsonp? Раз сервер отдает json, его и указывайте. Ну и вообще, есть $.getJSON().
Что бы я не выбирал в radiobutton, значение a и b, соответственно и strr остаётся таким же.
не понял как передавать значение переменной из циклаВ вашем коде нет ни одного цикла.
npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/gulp'Что бы это могло быть? Alert the Queen!
npm ERR! Please try running this command again as root/Administrator.
The read callback will retrieve any existing session data (stored in a special serialized format) and will be unserialized and used to automatically populate the $_SESSION superglobal when the read callback returns the saved session data back to PHP session handling.php.net/manual/en/function.session-start.php
А для include например нету подсказки. Для for() тоже нет и таких функций много.Дело в том, что это не функции, а конструкции языка и их синтаксис довольно гибкий.