1. #1
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default Ext.util.GeoLocation and .99

    Ext.util.GeoLocation and .99


    using virtually the same code as in the docs, the location is never being prompted for.
    also the "message" var is returned as "Result of expression".
    Code:
    var geo = new Ext.util.GeoLocation({
        autoUpdate: false,
        listeners: {
            locationupdate: function (geo) {
                alert('New latitude: ' + geo.latitude);
            },
            locationerror: function (geo, bTimeout, bPermissionDenied, bLocationUnavailable, message) {
                if (bTimeout) {
                    Ext.Msg.alert(message, 'Oh noes! Your device has not reported back a location in a timley mannor . Doing search based off of our Home Office.', Ext.emptyFn);
                    } else if (bPermissionDenied) {
                    Ext.Msg.alert(message, 'Oh noes! Access to your location has been denied. Doing search based off of our Home Office.', Ext.emptyFn);
                    }else if (bLocationUnavailable) {
                    Ext.Msg.alert(message, 'Oh noes! We are unable to determin your location. Doing search based off of our Home Office.', Ext.emptyFn);
                    } else {
                    Ext.Msg.alert(message, 'Oh noes! We couldn\'t find you. Doing search based off of our Home Office.', Ext.emptyFn);
      }          }
    }
    });
    any idea's or updated docs?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,187
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    autoUpdate is off. Are you invoking updateLocation?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    I'm sorry.
    yes i am calling a geo.updateLocation() in the main panel's beforeshow
    same code worked in .98
    only diffence that i can remember making is the Ext.lib.Container.prototype.bubbleEvents = []; you had me add to address another issue.

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,187
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Hrm any more information? I did a trivial example plus verified its working in GeoCongress.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    even if autoupdate was turned off, would that automatically call the locationerror:bLocationUnavailable?

    i should of mentioned that this is what happens

  6. #6
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    ill get my dev app online. and post here.

  7. #7
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    I'm sorry I only have my phone rt now so hacking together a sample would be kinda cumbersome.
    Http://apps.PMZ.com/mobile/test-mobile
    Search-->nearby

    The nearby.js has the relevant code.
    As u can see it errors out without prompting.
    Any help would be appreciated.

  8. #8
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    got it.
    if i instantiate the GeoLocation object in my Ext.Setup as opposed to in the included js it works.
    donno why but it works.

  9. #9
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,187
    Vote Rating
    119
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Ext.setup and onReady wait until the dom is ready. This needs to happen to interact with the geolocation object. Happy that you got this working
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  10. #10
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    same here. one of my last hurtles moving to .99

    if ur going to the SenchaCon, hit me up i owe ya a beer

Similar Threads

  1. Geolocation issue when app saved to homescreen on iPhone
    By MrNibbles in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 8 Jan 2012, 11:56 PM
  2. Ext.util.GeoLocation is not working
    By gmanraj in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 26 Oct 2010, 4:42 PM
  3. Geolocation working on Android? Timeline on release for camera access
    By olin in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 10 Aug 2010, 12:32 AM
  4. Ext.util.GeoLocation tweeking
    By crp_spaeth in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 17 Jun 2010, 5:23 AM

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