Hello,

I followed the RemoteTableModel manual to implement a simple remote model.
In my case, the backend providing the table data is just a plain JSON file.
I'm creating the Request object like this:

  var req = new qx.io.remote.Request("http://localhost/tabledata.json";,
"GET", "text/plain"); 
  // Add listener
  req.addListener("completed", this._onLoadRowDataCompleted, this);      

I never get to the _onLoadRowDataCompleted() function since the request
results in an error:
005099 qx.io.remote.Exchange: Unknown status code: 0 (4)

I also tried using file://, but then I get: Could not load from file:
"file:///var/www/tabledata.json

Basically I'm trying to find a way like the JsonToList and JsonToTree
examples load/bind data, but for the Table widget. Is this the right
approach anyway?

Thanks, Roman.
-- 
View this message in context: 
http://www.nabble.com/using-a-plain-json-file-as-table-data-tp25889134p25889134.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to