PDA

View Full Version : Add Cross-domain AJAX support to Ext.data.HttpProxy



onlysimchas
17 Mar 2008, 11:31 PM
Using F4A, we were able to add cross-domain support to Ext.data.HttpProxy. There are some things which need work, but here is a quick and dirty example...

http://www.jsloader.com/twiki/bin/view/AjaxCookbook/HowToEnableCrossDomainAccessInExt

I know it could use improving, but if you have a site which has a crossdomain.xml file, ext can get at it now pretty naturally... I've had some issues getting XML to behave normally with DomQuery (the parser complains sometimes and it's a bit hard to find out) but for JSON it works very easily.

Improvements are welcome, just log on (it's a twiki for a reason!) and play around in the sandbox...

enjoy.
dbk