RE: [jQuery] Callback in $.getJSON is called but variable assignment doesn't persist.

2010-01-04 Thread Josh Nathanson
y, January 04, 2010 9:55 AM To: jQuery (English) Subject: [jQuery] Callback in $.getJSON is called but variable assignment doesn't persist. Hi, on the following code: $.getJSON("http://www.tametick.com/test2/json/settings.json",function (data) { this.Settings = data; alert(data)

[jQuery] Callback in $.getJSON is called but variable assignment doesn't persist.

2010-01-04 Thread Ido Yehieli
Hi, on the following code: $.getJSON("http://www.tametick.com/test2/json/settings.json",function (data) { this.Settings = data; alert(data); alert(this.Settings); }); which can be found on http://www.tametick.com/test2 (line 63 in http://www.tametick.com/test2/js/cardinal-quest.js), I