I have a problem where I am not able to update a global variable from inside a callback function.
Here is my code:
The problem is that the alert always shows "initial value" and never the "results" from the callback function.
What am I missing? Shouldn't global variables be global, even within a callback function?