FrozenDice <[EMAIL PROTECTED]> writes:
> I downloaded the PHP backend, I copied the services directory to the root of
> my webserver, and went to /services/ and it said Services require JSON-RPC.
> Ok, so I'm pretty sure that's working now. But how do I take the
> RpcTreeFullControl example on the qooxdoo.org website and hook it into my
> backend? I tried doing a save page as and opening it on my own computer in
> the webserver root to no avail. rpc.setUrl("/services/");
> rpc.setServiceName("qooxdoo.fs");
> seem right, I have a folder named services, with a folder inside that named
> qooxdoo and finally in that fs.php. So when I open this in my browser how
> come it doesn't work? I get "Async(1) : exception Transport error 0:
> unknown status code".
Hi Dan,
You seem to have missed an important part of my previous message:
>> One more comment about this. You'll have to run this by downloading
>> qooxdoo frontend and backend to your own server. The qooxdoo.org site does
>> not currently have a JSON-RPC server, so the RPC tests don't work if run
>> from that site.
For security reasons, you can't¹ access a remote procedure on a server that is
not the server from which the original page was served. That's why you need
to download the frontend (the SDK and sample applications) to your server as
well, and then load the application from your local server. Any attempt to
load that particular application (unaltered) from qooxdoo.org and then access
your local server for RPC is doomed to failure.
Cheers,
Derrell
Footnotes:
¹ Well that's not quite true; there are ways to set up the client and server
to allow cross-domain requests. It's potentially dangerous, and the
RpcTreeFullConotrol example does not use it.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel