1. #11
    Sencha User
    Join Date
    May 2011
    Posts
    8
    Vote Rating
    0
    haktm is on a distinguished road

      0  

    Default


    Oh, man. I resave your code. now is :
    Code:
    var tweetsStore = new Ext.data.Store({
        model : 'Tweet',
        autoLoad: true,
        proxy: {
            type: 'ajax',
            url: SF.proxy('http://api.twitter.com/1/statuses/public_timeline.xml'),
            reader: {
                type: 'xml',
                root: 'statuses',
                record : 'status'
            }
        },
    });
    and it's working with xml
    http://senchafiddle.com/#IBdE4

  2. #12
    Sencha User
    Join Date
    Oct 2011
    Location
    Pakistan
    Posts
    229
    Answers
    10
    Vote Rating
    1
    umr.ashrf is on a distinguished road

      0  

    Default


    First Point:
    When you call load right after store creation, there is huge probability that the controllers or views are not yet loaded resulting into errors. I can prove it and have proved it with my link.

    Second Point:
    No twitter isn't GOD and can legitimately be wrong. I tested this myself and I am not just throwing words in the air. Try to copy twitter's response XML into your newly created file and save it and then try to call it via AJAX.

    I tried to help you here. Please don't make me think I was wrong.

  3. #13
    Sencha User
    Join Date
    Oct 2011
    Location
    Pakistan
    Posts
    229
    Answers
    10
    Vote Rating
    1
    umr.ashrf is on a distinguished road

      0  

    Default


    You're right. It's working with XML now. Sorry for the second point. My tests were also right so. I am glad if it helped you.

  4. #14
    Sencha User
    Join Date
    May 2011
    Posts
    8
    Vote Rating
    0
    haktm is on a distinguished road

      0  

    Default


    ok. i see, the problem is in the cross-domain. how i can hack this on my own machine and will i have some kind of problems if i run application on the real phone?

  5. #15
    Sencha User
    Join Date
    Oct 2011
    Location
    Pakistan
    Posts
    229
    Answers
    10
    Vote Rating
    1
    umr.ashrf is on a distinguished road

      0  

    Default


    I don't think it's cross domain problem. On chrome this is the problem though but in iOS and other smartphones there is no need to care about this because there are no such restrictions. It will work fine without this function SF.proxy().

  6. #16
    Sencha User
    Join Date
    May 2011
    Posts
    8
    Vote Rating
    0
    haktm is on a distinguished road

      0  

    Default


    hm...then, i will get some virtual machine with IOS becouse http://senchafiddle.com is very unstable(unfortunately)

  7. #17
    Sencha User
    Join Date
    Oct 2011
    Location
    Pakistan
    Posts
    229
    Answers
    10
    Vote Rating
    1
    umr.ashrf is on a distinguished road

      0  

    Default


    Yes it's newly developed but not that buggy. I couldn't follow you at VM for iOS.

  8. #18
    Sencha User
    Join Date
    Apr 2012
    Posts
    18
    Vote Rating
    0
    NehaBhatia is on a distinguished road

      0  

    Default


    Hi,

    I am also facing same problem.
    Please help me out, if you are done with the problem...

    I am exhausted of the same since a week's time.

    I have a view "Xblist.js" with following code
    Code:
     {
                         xtype: 'list',
                         id: 'mylst',
                         itemTpl: '{tname}',
    
    
                         store:
                         {
                             autoload: true,
                             storeId: 'MStore',
                             model: 'Sencha.model.Main',
    
    
                             scripttagproxy: {                         
                                 type: 'ajax',                            
                                 url: 'http://www.abc.com/xml/c.php?d=2',
                                 reader: {
                                     type: 'xml',
                                     record: 'item',
                                     rootProperty: 'root'
                                 }
                             }
                         },
    The store "IStore.js" looks like this
    Code:
    Ext.define('Sencha.store.IStore', {
        extend: 'Ext.data.Store',
        config: {
            autoLoad: true,
            storeId: 'IStore',
            model: 'Sencha.model.Items',
    
    
            proxy: {                  
                         type: 'scripttag',                  
                         url: 'http://www.abc.com/xml/c.php?d=2',             
                        reader: {
                            type: 'xml',
                            record: 'itemlevel0',
                            rootProperty: 'root'
                        }
            },
            filters: [{
                property: 'itid'
                //value: '1288'
            }]
        }
    });
    While accessing web service through store,I am getting an error like
    ' unexpected token < ' c.php 1
    Is it possible to access cross domain while using sencha touch with chrome?
    If yes then how to access Web Service throuh url?

    I have tried url: SF.proxy('http://abc.xml') also but for that I am getting an error SF is undefined.Do i need to install Sencha Fiddle on my machine?
    Is there any alternative without using Sencha Fiddle?


    Please help me out.
    I hope you will help me.

    Thanks in advance,
    NB

  9. #19
    Sencha User
    Join Date
    Feb 2012
    Location
    Detroit, MI
    Posts
    15
    Vote Rating
    0
    Nares is on a distinguished road

      0  

    Default Hi...facing same issue Reading XML Error: Unexpected token <

    Hi...facing same issue Reading XML Error: Unexpected token <


    Hi,
    I'm facing same issue.
    Accessing http request on cross-domain, and that why using proxy type as jsonp.
    With this I'm getting error as follows.
    Reading XML Error: Unexpected token<my Store:

    config: {


    autoLoad: true,


    model:'myModel',


    storeId:'storeID',


    proxy: {
    type:'jsonp',
    url:'http://domain.com',
    reader: {
    type:'xml',
    rootProperty:'rootProperty' }
    }
    },


    Please note that, XML repsonse from server does contain data with CDATA tag
    Ex:
    <city>
    <![CDATA[CityName]]>
    </city>

    Not sure, error I get is due to a limitation on reader type "xml"

    Please help
    Thanks in advance...

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi