M
Montezuma's Daughter
Hi All
please help me using callback .
my expected results are , alert ('1,2,3)
but the results are alert(undefine)
can anyone expain me why? thanks
function ActivateFuncOnObjects(list,Callbackfunction)
{
return function() { Callbackfunction.apply(list); };
}
function AlertF(text)
{
alert(text);
}
==============================================
var fn = ActivateFuncOnObjects2('1,2,3',AlertF);
fn();
please help me using callback .
my expected results are , alert ('1,2,3)
but the results are alert(undefine)
can anyone expain me why? thanks
function ActivateFuncOnObjects(list,Callbackfunction)
{
return function() { Callbackfunction.apply(list); };
}
function AlertF(text)
{
alert(text);
}
==============================================
var fn = ActivateFuncOnObjects2('1,2,3',AlertF);
fn();