Jonathan and Karthik,
While there are circumstances where you can't make cross-domain web
requests due to security constraints (some POST requests come to mind),
there are other situations where it is allowed. In fact, the RPC
implementation in Qooxdoo allows for some cross-domain calls if the
server itself is set to allow them, although it's not a good idea.
However, from what I remember and without going and looking at the
Qooxdoo docs, I thought that the HttpRequest was a standard GET request
that can request content from any server, regardless of matching domain.
Am I remembering this incorrectly?
Since there are several ways of making requests in Qooxdoo based on
various framework classes, a summary of the capabilities and limitations
of each approach might help new developers (and some of us older ones
too). Is there a succinct summary in somebody's back pocket that could
shed light for others on this particular topic of cross-domain access?
Gene
On Fri, 2009-07-17 at 15:47 +0200, Jonathan Weiß wrote:
> Hello Karthik,
>
>
> it is not possible to create requests to hosts that are different from
> the host the JavaScript is executed from (same origin policy).
> However, you can bypass this if you the backend sends you JavaScript
> data and you know how to handle them.
>
> What do you want to achieve, if you don't mind asking?
>
> The strange thing is, that I also get status code 204, also there IS
> content...
>
>
> Cheers,
> Jonathan
>
>
> On 17.07.2009, at 14:16, Karthik wrote:
>
> > Hi,
> >
> > For some reason HttpRequest for any URL always gives me status code
> > 204 - NO CONTENT.
> >
> > var request = new qx.io2.HttpRequest("http://www.google.com");
> > request.send();
> > request.addListener("load", function(e) {
> > alert("hello world");
> > alert(request.getStatusCode());
> > });
> >
> > Can anyone please tell me what I am missing?
> >
> > Thanks,
> > Karthik
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel