Hi all,

I'm trying to get a JSON object as model into my application. For my
first case it's not relevant if the source is a webserver or my local
file system (in the end scenario it must be a webserver). 

I read the twitter sample from qooxdoo an played around...

the tutorial variant:
var url = "http://twitter.com/statuses/friends_timeline.json";;
this.__store = new qx.data.store.Jsonp(url, null, "callback");

result --> __store is "undefined", model is "null" (no error message)

my webserver variant:
var url = "http://localhost/demo/processes/testprocess_01.json";;
this.__store = new qx.data.store.Json(url);

result --> __store is "undefined", model is "null" (no error message)

my file system variant:
var url = "/var/www/demo/processes/testprocess_01.json";
this.__store = new qx.data.store.Json(url);

result --> __store is "undefined", model is
"null" (qx.io.remote.transport.XmlHttp[51]: Could not load from
file: /var/www/demo/processes/testprocess_01.json)

I'm using qooxdoo 1.2 and we're here behind a proxy server (perhaps this
is relevant).  

By the way if I try to generate the model directly from JSON I'm getting
the model without problems:

var model = qx.data.marshal.Json.createModel({
                processName: "TESTPROCESS",
                processVersion: "1.2",
                processDescription:
                ...

Any suggestions what to do?

Thanks in advance - Claus



Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
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

Reply via email to