Results 1 to 2 of 2

Thread: How to access url of XML ?

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    11
    Vote Rating
    0
      0  

    Default How to access url of XML ?

    Hi,

    I am facing problem in accessing XML through url property of proxy.

    My code is as shown below:

    Code:
    proxy: {
                type: 'ajax',
                url: 'test.xml',    // from this i can access xml
               // url: 'http://www.abcccc.com/xml/v2.php?device=Touch&appName=AApppVersion=1.00&userStatus=0&xmlVersion=1&lastupd=2234123123',                 // but i cant access xml through this link 
                reader: {
                    type: 'xml',
                    record: 'root>item',
                    rootProperty: 'root'
                }
            }

    I am using scripttagproxy instead of proxy while accessing url of xml.

    Please solve my problem.
    Or give me any solution to change my xml automatically when my url is changed.
    Please help me.

    NG

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,060
    Answers
    3976
    Vote Rating
    1389
      0  

    Default

    The only way to get XML cross-origin is if your server supports CORS.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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