1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    212
    Vote Rating
    3
    bweiler is on a distinguished road

      0  

    Default Ajax proxy troubleshooting help needed.

    Ajax proxy troubleshooting help needed.


    I've got a strange problem where an ajax proxy request succeeds and the data from the server shows up in the operation, but not the store and the store records array is empty.

    How do I go about troubleshooting this?

    I tried stack traces, looking at the Sencha Touch code, using console.log dumps of the model, proxy and store and can't find the problem.

    Thanks

    Code:
    records: [ ]
    
    Operation:
    _action: "read"
    ...
    _response: Object
      getAllResponseHeaders: function () {
      getResponseHeader: function (header) {
      request: Object
      requestId: NaN
      responseText: "{"metaData":    {"success":true,"total":1,"rootProperty":"item"},"item": ...
      responseXML: null
      status: 200
      statusText: "OK"
    Here's the straightforward store.load():
    Code:
    store.load({
        callback: function(records, operation, success) {
            // the operation object contains all of the details of the load operation
            console.log(records, operation);
        },
        scope: this
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What does your reader look like?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    212
    Vote Rating
    3
    bweiler is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    What does your reader look like?
    I just now figured it out. It turned out to be a rootProperty mismatch with my php response which is why it kept failing silently.

    Thanks
    Code:
                reader: {
                    type: 'json',
                        rootProperty: 'bills',
                },

Thread Participants: 1

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