Threaded View

  1. #1
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Answered: On Logout revert back to Viewport

    Answered: On Logout revert back to Viewport


    Hi,

    In my app i had a logout button. I want when a user tap on it, user must be redirect to viewport.

    In my app.js i had used
    launch: function() {
    Ext.create('Advait.view.Viewport');
    },

    For logout i had use below code in view
    {
    xtype: 'button',
    docked: 'bottom',
    ui: 'decline',
    style: 'border-radius:0',
    text: 'Logout',
    action: 'logoutuser'
    }

    and a logout function in my controller
    logout: function() {
    console.log('User will Logout');
    //What should i add here which will reload my vieport again
    }

    I am getting console.log message successfully. Please tell me which method will take me to viewport again.

    Thanks

  2. Hmm...this is strange.
    What version of Sencha Touch are you using?

    I created a quick SenchaFiddle to simulate your app structure. Maybe you can have a look at this and compare it to your code. I hope my example does exactly this what you want to achieve? It definitely works
    Here's the link: http://www.senchafiddle.com/#O9nRv

    Best regards,
    Schildi

Thread Participants: 2

Tags for this Thread

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