Re: [qooxdoo-devel] howto load local json-files

2010-01-15 Thread SQville
Andreas, In my experience, including your json files within your index.html is a sound practice. I do something similar in an application of mine where I have the CMS create javascript variables and include them in script tags in the resulting html (

Re: [qooxdoo-devel] howto load local json-files

2010-01-11 Thread MartinWittemann
Hello Andreas, it depends oh how you plan to load the data. If you have a file on your file system ,you need to load it some way. The JSON store uses io.request for that but if you want to have some other type of loading mechanism, you can either subclass the store or get the data somehow to a Ja

Re: [qooxdoo-devel] howto load local json-files

2010-01-09 Thread lp1051
Hi Andreas, I am not sure if it is the best way, but you can always include your js file with data object (e.g. var myDataObject = { ... };), inside index.html and in qooxdoo call - qx.data.marshal.Json.createModel(myDataObject); Hope it helps, Luke Andreas G. wrote: > > > hello guys! > > i

[qooxdoo-devel] howto load local json-files

2010-01-09 Thread Andreas G.
hello guys! is there a way to create model-data of local json files besides using qx.data.store.Json? i dont want to do io-requests for local stuff. :) qx.data.marshal.Json.createModel() needs a data-object to create model-data from, i would like to convert my json-files to data-objects and the