Hi Steve,

Am 23.05.2007 um 21:00 schrieb Steve Ramage:

> Okay so I've received two responses and I'm not exactly 100% clear  
> on what
> they mean.
>
> So when you say with cross domain AJAX requests must be in  
> Javascript code,
> does that if I was on the same domain I could use the existing XML  
> system?

Yes. When you don't call setCrossDomain(true), qooxdoo automatically  
uses XmlHttpRequest for communication, and you can read XML responses  
from the server.

> If not short of rewriting the API to output JSON is there any way  
> to use
> Qooxdoo with it?

See above (same-domain requests should work fine for you). Should you  
ever need cross-domain calls, you have no other choice than to send  
JavaScript code from the server (wrapping the XML). The reason for  
this restriction is the browser security model. In theory, you can't  
read anything from a server in a different domain. However, there's  
sort of a loop hole using JavaScript code (although it doesn't really  
compromise the security model if used correctly), and this is  
leveraged by qooxdoo for cross-domain requests.

Regards,

   Andreas


-------------------------------------------------------------------------
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

Reply via email to