1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default Unanswered: custom slide navigation ui working only in the browser | breaking on the mobile

    Unanswered: custom slide navigation ui working only in the browser | breaking on the mobile


    Hi All,

    As a branch of the following

    https://github.com/wnielson/sencha-SlideNavigation

    I have created the following plugin

    https://github.com/alessiovalentini/Slide

    This plugin works perfectly either in the browser and when packaged up and deployed on the mobile (tested on iOS iPhone5 and iPad1)

    When pluggin in this into my main project what happens is that the slide UI works perfectly but only in the browser. When deployed to the mobile, the UI doesn't slide anymore (when clicking the slide button, nothing happens) and the two panels (Menu and Main) are not correctly overlapping from top to bottom, being possible to partially see the Menu below the Main.

    I have been breaking my head on this for more than one week so far. I still have got any result.

    Debugging the code on the mobile using alerts() it seems like there is a point where the flow just stops without any errors

    Code:
    onOpenMenuButtonTapped: function(){
            alert('0')
            var main = this.getRightContainer();
            var menu = this.getRecordList();
            alert('1') ====================>>>>>> here stops > doesn't even enters the main.isClosed()
            alert(main.isClosed())
            if (main.isClosed()) {
                alert('call open menu')
                main.openMenu(menu.getOpenAnimDuration());
                alert('after call open menu')
            } else {
                alert('call open close menu')
                main.closeMenu(menu.getCloseAnimDuration());
                alert('after call open close menu')
            }
            alert('end of onOpenMenuButtonTapped')
        }
    
    
    =========> I should at least get the alert('isClosed')
    
    
    isClosed: function() {
            alert('isClosed')
            alert(this.getDraggable().offset.x)
            alert('return')
            return (this.getDraggable().offset.x == 0);
    }
    I have been trying even with Sencha Touch 2.2 but nothing changes. Simply the working plugin mysteriously stops working when plugged into the main project and is deployed to the mobile.

    I need a hand!

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    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


    You may want to reach out to the authors to see if they have time or want to look into it.
    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
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    by 'author' you mean the author of the plugin? > https://github.com/wnielson/sencha-SlideNavigation

  4. #4
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Answers
    1
    Vote Rating
    1
    swarnendude is on a distinguished road

      0  

    Default


    Go for an easy slide navigation which will to work everywhere:

    http://innofied.com/simplest-slide-navigation-with-sencha-touch-2-2/

    all-screens1.jpg
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    I'll have!

    Even if it looks like what I've done. That it's working as a standalone plugin.

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    498
    Answers
    25
    Vote Rating
    51
    shepsii has a spectacular aura about shepsii has a spectacular aura about shepsii has a spectacular aura about

      0  

    Default


    I don't know about the plugin, but you will have much more luck using console.log than alert to debug.
    I blog about Sencha Touch at www.senchatouchdev.com

  7. #7
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    I was using alert to identify where the flow stops.
    I moved to this

    http://jsconsole.com/

    in order to see the values inside the main and menu vars. but problem is that the output doesn't come out in the jsconsole... probably due to 'maximum call stack size' error

    do you know a better way to debug on the mobile device? It really seams like the problem is that a value is not returned into main and menu vars.

  8. #8
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    Nothing to do.


    Same problem.


    Perfect in the browser... not moving on the mobile...........

  9. #9
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    @swarnendude

    Nice plugin!

    Problem is that even with this one it doesn't work when deployed on the mobile, plugged into my project (of course it's working standalone)

    Do you think you can help me?

  10. #10
    Sencha User
    Join Date
    Nov 2012
    Location
    London
    Posts
    19
    Vote Rating
    0
    alessio.valentini is on a distinguished road

      0  

    Default


    At the moment, given this

    Code:
    toggleNav : function(){
            var me = this,
            mainEl = me.getRightContainer().element,
            navEl = me.getRecordList().element;
    
    
            if( mainEl === undefined || mainEl === null )
                alert('mainerror')
    
    
            if( navEl === undefined || navEl === null )
                alert('naverror')
    
    
            if (mainEl.hasCls('out')) {
                alert('out')
                mainEl.removeCls('out').addCls('in');
                navEl.removeCls('in').addCls('out');
            } else {
                alert('in')
                mainEl.removeCls('in').addCls('out');
                navEl.removeCls('out').addCls('in');
            }
        }
    it's alerting 'out' the first time I press and 'in' the second one...

    So it's getting correctly the elements and it's going correctly inside the if/else.

    So the problem it's in the CSS I guess............

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