My code to set a global variable using eval is not working. It\'s as if the assignment is not called at all, but no script errors occur.
eval
Eval runs locally, you're setting a local variable.
To set a global variable, remove var;
var