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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The only way to get XML cross-origin is if your server supports CORS.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •