I am having problem with the following javascript -
var bVisited = false;
function aFuncCallBack(somestring)
{
bVisited = true;
}
processingManager.setCallBack(aFuncCallBack);
processingManager.DoWork();
if(bvisited == false)
alert("Call back not entered");
aFuncCallBack
gets hits in my case; I am setting the bVisited
to true
there -
but still when I check the variable after the DoWork
call the value is still false
-
I am not able to figure what the problem is. I searched for some threads but didn't find anything relevant.
Could someone throw some light on why this behavior and possibly what should I do?
Thanks.