I have this:
var MyObject = {};
MyObject.doStuff = function(someParam) {
var webdav = new Webdav("addr","port");
var handler = {
onSuccess: MyObject.Success,
onError: MyObject.Fail
}
webdav.PUT(handler, filename, options);
}
MyObject.Success = function(result) {
alert('status ' + result.status + result.statusstring);
}
I'm using exo platform javascript library for webdav access (if it matters)
The handler I'm creating will call MyObject.Success
if webdav.PUT
is done succesfully. How can i send the someParam
to that function too?
Put in another way, after a successful or failed operation, I'm interested in doing something with the someParam
, depending of the result.