Hey, > --snip-- > var url = "http://www.catify.com/demo/json/dummy.json"; > var jsonStore = new qx.data.store.Json(url); > jsonStore.addListener("loaded", function(e) > { > // model is created at this point > // and the data of the given event ('e' parameter) > // is the created model > this.doSomethingWithTheModel(e.getData()); > }, this); > }, > > doSomethingWithTheModel: function(model){ > alert(model); > } > --snip-- > > The json document is really simple, too: > { > foo: "foo", > bar: "bar" > }
You code seems to work. I tried it in the qooxdoo playground to see whats wrong. As i said, the code itself is ok. The problem is the JSON file or the status code returned by the server (0) delivering the JSON file. Thats the reason out transport layer doesn't do anything with the data. Using foe example another URL [1] brings you the desired result. Regards, Martin [1] http://demo.qooxdoo.org/devel/demobrowser/demo/data/json/list.json ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
