error:option.errorHandler||function(type){if(type.status==404){isAvailable=false;}else{alert("Error "+type.status+" : fail while trying to check "+name);}}
});
returnisAvailable;//warning : always null if asyncronous
error:option.errorHandler||function(type){if(type.status==404){isAvailable=false;}else{alert("Error "+type.status+" : fail while trying to check "+name);}}
});
returnisAvailable;//warning : always null if asyncronous
},
/**
* load a document in the storage
* @param fileName : the name of the file where the data will be stored
* @param option : optional object containing
* "type" : the type of data to store
* "success" : the function to execute when the load is done
* "errorHandler" : the function to execute if an error occures
* "asynchronous" : a boolean set to false if the request must be synchronous
* @return null if the request is asynchronous, the content of the document otherwise