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