Hi Joan,
On Friday March 19 2010 14:51:42 Joan Miquel wrote:
> I'm new and i have not a lot of no in Java.
> I would like to do a request to a Server and then get the response,
> could me help me please.
> Thanx !
>
> I have this
> Request req = new Request("http://localhost/test.php","GET");
>
> ??? -> for recieving the answer ?
This is no valid javascript syntax (like below).
> Or like this in Java
> req = new qx.io.remote.Request(val.getLabel(), "GET", "text/plain");
>
> req.addListener("completed", function(e) {
> alert(e.getContent());
> // use the following for qooxdoo versions <= 0.6.7:
> // alert(e.getData().getContent());
> });
This should work if "val.getLabel" is returing a valid URL to your server. Do
you already setup a server and tested the URL manually?
cheers,
Alex
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel