jQuery Ajax helpers set does not have shortcuts for PUT and DELETE methods, but nothing prevents us to make them ourselves.
Continue readingjQuery: $.put and $.delete
4
jQuery Ajax helpers set does not have shortcuts for PUT and DELETE methods, but nothing prevents us to make them ourselves.
Continue readingjQuery Ajax Simple Mock from Cowboy to bookmarks.
В частях 1, 2, 3 мы научились читать файлы с диска.Теперь попробуем разобрать процесс отправки файлов на сервер с помощью технологии ajax.
В начале вспомним как работать с аяксом для передачи файла на сервер:
Получим следующий код(по пунктам):
var request = new XMLHttpRequest();
request.onreadystatechange = ajaxReady;
request.open('POST', 'uploader.php', true); // (1)
request.setRequestHeader('Content-Type', contentType); // (2)
request.sendAsBinary(createTestMsg()); // (3)