On Wed, Nov 4, 2009 at 19:34, Gianluca Rettore <[email protected]>wrote:
> My solution of the problem is use jquery with qooxdoo but i want use
> only qooxdoo!
>
> So if i use qx.ui.remote.Request with set CrossDomain(true) the
> transport is convert in script!
>
> Well, how the returs is made??
>
A cross-domain request from qooxdoo will be sent as a GET request with the
two parameters _ScriptTransport_id and _ScriptTransport_data.
_ScriptTransport_id contains an identifier that must be sent back in the
repsonse, referred to below as SCRIPT_ID. _ScriptTransport_data contains the
JSON-RPC request object as described in the section entitled "request
(method invocation)" in
http://qooxdoo.org/documentation/Rpc_server_writer_guide. Note that the
request object contains an id which may or may not be the same as the
_ScriptTransport_id.
The response from the server must be a JSON-encoded value in the format
described in the section entitled "response" in Rpc_server_writer_guide.
That JSONified object is referred to below as REPLY. The REPLY is
encapsulated as follows:
"qx.io.remote.transport.Script._requestFinished(SCRIPT_ID, REPLY);"
This string containing a function call with two parameters, the script id
and the reply, is what is sent back as the response by the JSON-RPC server
when a cross-domain request was issued.
Hope that helps. If you're writing a JSON-RPC server to work with qooxdoo,
you'll want to (a) carefully review the Rpc_server_writer_guide document
referenced above, and (b) use one of the existing qooxdoo-contrib JSON-RPC
servers as a guide. A new JSON-RPC server is not difficult to write, but
there are a number of details that have to all fit together correctly.
Derrell
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel