i want to create a folder on the server using AJAX... and i am using the following codes....
function createFolder() {
var encodedName = "bla bla bla"; //$.URLEncode(name);
ajaxLoadingOn();
$.ajax({
type: 'POST',
url: "_DAV/MKCOL",
data: {
name: encodedName
},
dataType: "json",
success: function() {
ajaxLoadingOff();
window.location = encodedName + "/index.html";
},
error: function() {
ajaxLoadingOff();
alert('There was a problem creating the folder');
}
});
}
but it doesn't work is there a complete tutorial that i can follow to create a folder on the server using ajax... any help would be appreciated... :) thanks in advance.. :)