Hi,

forwarding this email to the mailing list, since Gianluca's original
post was caught by the spam protection and deleted accidentally.

Andreas

PS: Well, I wonder if there shouldn't be some punishment for subjects
such as "Help ME"? Please always use more meaningful subjects.


-------- Forwarded Message --------
From: Gianluca Rettore <i...@airone-lt.com>
To: qooxdoo-devel@lists.sourceforge.net
Subject: Re: Help ME
Date: Mon, 2 Nov 2009 22:30:22 +0100

Derrell Lipman ha scritto:
 > On Mon, Nov 2, 2009 at 12:30, Gianluca Rettore  
<glade...@gladenko.com <mailto:glade...@gladenko.com>> wrote:
 >
 >     Help me!
 >
 >     When i call a remote procedure (rails with render json)
 >
 >     i have only timeout
 >
 >     this is my code
 >
 >
 >
 >     var req = new
 >     qx.io.remote.Request("http://127.0.0.1:3000/clienti/ 
list","POST","text/plain");
 >     req.setCrossDomain(true);
 >
 >
 > I recently posted this message to the mailing list. It should  
provide some direction:
 >
 >     Cross-domain requests are tricky, in that they can be  
dangerous, and
 >     that they can't be done with traditional XMLHttpRequest calls.
 >     qooxdoo implements cross-domain requests in a way that works  
easily
 >     with qooxdoo's backends but will require a bit of change to
 >     non-qooxdoo backends.
 >
 >     I'm not familiar with web2py, but if it's not designed to work  
with
 >     qooxdoo cross-domain calls, you'll have to make some changes to  
it.
 >     In qooxdoo, when a cross-domain request is made, the "Script
 >     Transport" is used. This transport expects to receive back *a  
call
 >     to a function* in qooxdoo. qooxdoo sends a request which  
includes a
 >     request id. The response from the backend should be in the form:
 >
 >       "qx.io.remote.transport.
 >     Script._requestFinished(requestId, responseValue);"
 >
 >     where requestId is the id that was passed to the request  
initially,
 >     and responseValue is whatever your remote procedure call is  
trying
 >     to return.
 >
 >     Take a look at qooxdoo.contrib project RpcPhp or one of the other
 >     qooxdoo backends to see the little bit of extra handling required
 >     for cross-domain requests. (And then remember that bit about
 >     "dangerous" and be very, very careful.)
 >
 >     Hope that helps.
 >
 >     Derrell
 >


Thank you for your answer, now i study this problem, but now i have  
another question!

Qooxdoo can be a server??? how i can use qooxdoo with a server and how  
i can connect to db??? Have you docs to read for my night?

Thank you in advance!

Gianluca rettore




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to