Thanks for your answer, Derrell. Just for completeness' sake, the documentation for this can be found in the io.remote package:
http://demo.qooxdoo.org/current/apiviewer/#qx.io.remote Regards, Daniel Derrell Lipman schrieb: > On Wed, Sep 2, 2009 at 06:44, Harry Brandenburg > <[email protected] <mailto:[email protected]>> wrote: > > Hi Daniel, > first thank you for your fast answer, but we think our response is a > valid JSON. > But we keep on getting the invalid label error, our response looks > like that: > > {"success":"true","data":"{\"userdata\":\" Name ... 10.36.58.100, > 10.36.58.101\\n\\n\",\"secondary\":\"zone d.blubb.blubb.de > <http://d.blubb.blubb.de>. forceXfer secondary\\nexit\\n\",\"primary\":\"zone > dblubb.blubb.de <http://dblubb.blubb.de>. addRR s CNAME d . \\ndns > reload\\nexit\\n\"}"} > > When using Script Transport (which you use whenever you make a > cross-domain request), the request will contain both an id value > (_ScriptTransport_id=) and a data value (_ScriptTransport_data). The > response must be a call to the function > qx.io.remote.transport.Script._requestFinished() with two parameters: > the id value provided in the request, and your response. > > Assuming that the id value passed to your server was 23, then your > response should be something like: > > qx.io.remote.transport.Script._requestFinished(23, > {"success":"true","data":"{\"userdata\":\" Name ... 10.36.58.100, > 10.36.58.101\\n\\n\",\"secondary\":\"zone d.blubb.blubb.de > <http://d.blubb.blubb.de/>. forceXfer > secondary\\nexit\\n\",\"primary\":\"zone dblubb.blubb.de > <http://dblubb.blubb.de/>. addRR s CNAME d . \\ndns reload\\nexit\\n\"}"}); > > The Script Transport must execute a script (that's how it works), so > this function call is what gets executed. It identifies the response > with a particular request (the id value) and sets the result to be the > second parameter to this function call. > > Cheers, > > 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 ------------------------------------------------------------------------------ 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
