Probably because your are trying to do a cross-domain request. In other
words, a request from a different domain as your app is running, or a
different port (that seems to be the problem). The browser blocks these
kinds of request for security reasons.
The best way to work around that is to create a proxy to forward your
requests to the DB. A simple PHP file (or any other server language) should
be able to do that.
On Mon, Jun 21, 2010 at 4:48 PM, murtaza52 <[email protected]> wrote:
>
> Hi,
>
> I am trying to connect to a JSON source (CouchDB). I am able to run the url
> in the browser and I recieve valid JSON. However when I try the same url in
> the code below I receive a null -
>
> var url = "http://127.0.0.1:5984/pricing";
>
> var store = new qx.data.store.Json(url);
>
>
> for (i=0; i<500; i++){
> this.debug(i);
> }
>
> this.debug(qx.dev.Debug.debugProperties(store.getModel()));
>
> I have tried the above code in the playground. Any ideas would be
> appreciated.
>
> Thanks,
> Murtaza
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/unable-to-get-JSON-store-working-tp5205923p5205923.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel