Weird JSON object (scope?) problem in $.ajax
This is a weird one. I often use JSON object.
I declare them as usual (var someobject = {};) and then construct further down, like
someobject[somevar]... = somevalue;
Needless to say, that works everywhere.. accept for inside of a $.get or a $.ajax success function.
I keep getting a 'object is undefined' error, even when I declare the object inside of the function (so not relying on scope outside of it) I have no idea what is going on there?!??
Anyone got any idea?