1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    74
    Vote Rating
    1
    Johnbran is on a distinguished road

      0  

    Default Remote data store when using xcode and phonegap

    Remote data store when using xcode and phonegap


    Hello,

    I have a project that works great as a web app for the iphone. When I try to build it to a native app, the app won't load the remote data store. I just get a constant "loading" pin wheel and no errors. I am using xcode 3.2.3 and phonegap 0.9.6. Here is the remote data store code I am using. I know this is probably a phonegap or xcode issue, but I figure you guys have experience with this.

    thanks

    Code:
    var cItems=[];
    Ext.ns("advertisers", "advertisers.stores");
    var ReturnedfavsNames;
    Ext.regModel('advertisersProperties', {
      fields : [ 
      
            
            { name : "id",        type : 'int' },
            { name : "name",   type : 'string' },
            { name : "catagory",     type : 'string' },
            { name : "address",      type : 'string' },
            { name : "phone",      type : 'string' },
            { name : "website",      type : 'string' },  
            { name : "logo",      type : 'string' },
            { name : "description",        type : 'string' },
            { name : "mon_open",   type : 'string' },
            { name : "mon_close",     type : 'string' },
            { name : "tue_open",      type : 'string' },
            { name : "tue_close",      type : 'string' },
            { name : "wed_open",      type : 'string' },  
            { name : "wed_close",      type : 'string' },
            { name : "thu_open",        type : 'string' },
            { name : "thu_close",   type : 'string' },
            { name : "fri_open",     type : 'string' },
            { name : "fri_close",      type : 'string' },
            { name : "sat_open",      type : 'string' },
            { name : "sat_close",      type : 'string' },  
            { name : "sun_open",      type : 'string' },
            { name : "sun_close",        type : 'string' },
            { name : "username",   type : 'string' },
            { name : "password",     type : 'string' },
            { name : "numviewed",      type : 'string' },
            { name : "lat",     type : 'string' },
            { name : "lon",      type : 'string' }
        
      ]
    });
    
    
    
    
    advertisers.stores.Properties = new Ext.data.Store({
      model : 'advertisersProperties',
      sorters: [{
        property: 'catagory',
        direction: 'DESC'
      }],
      
          getGroupString : function(record) {
            return record.get('catagory');
        },
      proxy : {
        type : 'ajax',
        url : '(my website removed).com/ppa/php/get_advertisers.php',
        reader : {
          type : 'json',
          root : 'result',
          totalCount : 'total'
        }
      },
      autoLoad : true
    });

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hi Johnbran,
    are you trying to test the app on your iPhone simulator that points to localhost?
    If so, try to put your server side app on a real domain and make your Tocuh app request data from it instead of localhost.

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Johnbran, did you find a solution to your problem?

  4. #4
    Sencha User
    Join Date
    Dec 2010
    Posts
    74
    Vote Rating
    1
    Johnbran is on a distinguished road

      0  

    Default Solution

    Solution


    I did solve the problem. I failed to add the website to the phonegap.plist external host list.

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Location
    Toronto, Canada
    Posts
    480
    Vote Rating
    4
    elishnevsky is on a distinguished road

      0  

    Default


    Found it soon after posing my question But thanks anyways.

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..."