Pitfalls with Javascript
Having spent nearly 3 days trying to understand why a Grid wasn't updating its data I finally stumbled on the solution. I'm probably not exaggerating when I say that this is on of the most dangerous issues with using a scripting language like Javascript:
You can declare a variable in the global scope and another with the same name inside a function. You think you are talking to a single Grid object when you are infact talking to two in different parts of the code.
Nothing will break, just nothing will work.
So if you are having problems with your UI element, Grid or Table not responding correctly then take a quick peek at the declaration.
You can declare a variable in the global scope and another with the same name inside a function. You think you are talking to a single Grid object when you are infact talking to two in different parts of the code.
Nothing will break, just nothing will work.
So if you are having problems with your UI element, Grid or Table not responding correctly then take a quick peek at the declaration.
Karl Thoroddsen
September 3,