Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    8
    Vote Rating
    0
    ssherriff is on a distinguished road

      0  

    Default Android local json store not loading

    Android local json store not loading


    Hi,

    I'm using phonegap, well, cordova now, to compile and deploy my app to the App Store and Android. I've got some data that I load from .json files into stores. Through the browser it all works 100%. With iPhone I had to use a hack I found on this form for an 'offlineajax' proxy. So my stores load fine now in an iPhone app. I thought Android would be easy as I didn't see anyone having issues, but on deployment to my device, none of my local json stores load. I just get the error:

    Uncaught TypeError: Cannot read property 'length' of undefined

    I seem to remember getting that when a store didn't load correctly but something is trying to get the number of times in the store.

    Anyone have this issue? Is it some sort of path problem? I've tried a bunch of different paths, and none of them worked. Is it not possible to use local json files to load into a store on Android? Do I have to add some sort of permissions? Any help would be great.

    Oh, just some info. I know my json is valid, and I know my store is setup correctly as it all works fine in the browser and on the iPhone. Just in case I have run my json through jslint and it is valid. The rest of the application seems to load correctly, my views are showing, images, etc, it is just where a store needed to load, the data doesn't show and I get that error.

    Cheers,
    Stephanie

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    8
    Vote Rating
    0
    ssherriff is on a distinguished road

      0  

    Default


    Okay, well answering my own question, but hope this will save someone a serious amount of time. I found my answer on this forum, but it is a bit buried in other requests, so I'll post it here.

    The thread I found it in, just in case someone is interested, and also so I give credit to the person who helped me, is here:

    http://www.sencha.com/forum/showthre...ndroid-4/page3

    The user 'shanesmith' says adding these parameters to their ajax proxy helped:

    noCache: false, enablePagingParams: false

    I actually also added:

    limitParam:null

    What this does is remove all parameters from the request string. As soon as I did that, it all worked. If you are using paging this is probably not a good fix for you, but luckily I wasn't.

    Cheers,
    Stephanie

  3. #3
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    63
    Vote Rating
    1
    stevanicus is on a distinguished road

      0  

    Default


    Fantastic thanks

    Code:
    noCache: false, enablePagingParams: false

Thread Participants: 1