I have a javascript function which is called from another function I have.
For some reasons, this function is not executed each time when called. I have tryed to change the name of the function, and then everything works fine.
I don’t understand why. Here is a litle example:
javascript 1:
function a()
{
b();
}
javascript 2:
function b()
{
c();
}
javascript 3:
function c()
{
alert("Function c");
}
The function c is not executed for some reasons… If for example the function c will be called newC(), then it works fine.
You probably have a conflict of names in the scope of
b()i.e. whenb()is executed, it can happen thatcis defined to something else in a current scope.Solution: Start your JavaScript debugger, set a breakpoint in
b()and check whatcis at that time.