View Full Version : Loading Data from External Server

10 Mar 2011, 4:51 AM
i have a little Question:

I'm currently building a little Air Application with a central server (PHP + MySQL).
I want my app to call this Server, and get the Data.

Well, i think because of XSS Protection or something like that, this isn't possible with the 'normal' way.
When using a external Link, the Ext.Store is not loading

var queueListStore = new Ext.data.Store({
url: 'http://mydomain.com/data.php',
autoLoad: true,
reader: new Ext.data.JsonReader({
root: 'rows',
totalProperty: 'results',
idProperty: 'ID',
fields: [

Is there a way to take external Data? Maybe through a proxy?
Hope for help :)


10 Mar 2011, 5:04 AM
You need to use ScriptTagProxy - see Steffen's response (http://www.sencha.com/forum/showthread.php?126392-Ajax-Call-Connection-Failed&p=579150&viewfull=1#post579150) which is applicable to you too.

10 Mar 2011, 6:21 AM
It works, thanks! :)