Hey,
I think that option 2 is the better and clearer approach. Did you check if
there is an "fail" event fired on the request? Just attach a listener for the
event named "fail" and see if there is something wrong with your request.
Regards,
Martin
Am 29.06.2013 um 05:56 schrieb Mohamed Fekih Ahmed
<[email protected]<mailto:[email protected]>>:
Hi every one,
I have a problem and no hope to resolve it by my self:
I user two way to get json file response from couchdb database:
NB: I run my application in local host from //PATH
1/ var urldb =
"http://username:password@IP:5984/rlibrary/_design/rlibrary/_view/all<http://opennms:[email protected]:5984/rlibrary/_design/rlibrary/_view/all>";
var remotereq = new qx.io.remote.Request(urldb, "GET", "application/json");
remotereq.setCrossDomain(true)
;
remotereq.toggleCrossDomain();
remotereq.send();
remotereq.addListener("completed", function(e) {
alert(e.getContent());
var response = remotereq.getData();
response.rows.forEach(function(row) {
rowData.push([false, ........<http://row.value.name/>]);
}, this);
});
2/ var req = new qx.io.request.Xhr();
req.setUrl(urldb);
req.setMethod("GET");
req.setParser("json");
req.addListener("success", function(e) {
var req = e.getTarget();
var response = req.getResponse();
response.rows.forEach(function(row) {
rowData.push([false, .....<http://row.value.name/>);
}, this);
}, this);
req.send();*/
=> with both solution i can't extract information from json response and there
is no error.
I saw that they put url as /some/path/..... but i want to use http url for
couchdb.
Can I link this http url to qooxdoo application?
Please Help.
--
Cordialement
FEKIH AHMED Mohamed
------------------------------------------------------------------------------
This SF.net<http://SF.net> email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel