I Have the following function.
function ChangeDasPanel(controllerPath, postParams) {
$.post(controllerPath, postParams, function(returnValue) {
$('#DasSpace').hide("slide", { direction: "right" }, 1000, function() {
$('#DasSpace').contents().remove();
$('#DasSpace').append(returnValue).css("display", "block");
$('#DasSpace').show("slide", { direction: "right" }, 1000);
});
});
};
But I want to be able to call it like this
ChangeDasPanel("../Home/Test", {} ,function (){
//do some stuff on callback
}
How can I implement support for callbacks in my function?