Results 1 to 3 of 3

Thread: Loading Data from External Server

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    2

    Default Loading Data from External Server

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

    Code:
    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: [
                'ID',
                 ...
            ]})
        });
    Is there a way to take external Data? Maybe through a proxy?
    Hope for help


    ~Aqua

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    You need to use ScriptTagProxy - see Steffen's response which is applicable to you too.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    2

    Default

    It works, thanks!

Similar Threads

  1. TreePanel loading external data
    By PCSpectra in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 24 Jan 2010, 5:57 PM
  2. Have trouble with loading external JSON data file.
    By volek in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 7 Oct 2009, 1:58 PM
  3. Dynamic/continuous loading of external data
    By paraglidersd in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 24 Feb 2009, 10:17 AM
  4. DataStore and loading data from server problem
    By Cyberangel67 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 May 2008, 6:01 PM
  5. Grid in tab layout won't render when loading from external data source
    By Eric24 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 15 May 2008, 7:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •