I am trying to call a function typed variable from jQuery code. But don't know how to do that. eval() takes string input but I have function typed variable. I have tried the following code
if($.isFunction(successCallback)){
window[successCallback]();
}
$.isFunction(errorCallBack)is working perfectly. It gives me true but I am not able the call that function @Satpalwindow[errorCallBack]();?errorCallBackas this is function typed variable. I am able to do that usingerrorCallBack.call()