1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    5
    Vote Rating
    0
    rich9285 is on a distinguished road

      0  

    Default Answered: Logout Redirect in Controller

    Answered: Logout Redirect in Controller


    Hi All,

    I have a button for the user to logout and should redirect to the login page. I have a logout.jsp file that handles the redirect. How do I call the file in my controller? I posted my controller code below.

    Ext.define('UI.controller.LogoutController', {
    extend : 'Ext.app.Controller',

    views : ['HomePageHeader'],

    init : function() {
    console.log('INFO : Logout controller initiated');
    this.control({
    'menu component[action=logoutClick]' : {
    click : this.onLogoutClick,

    }
    });
    },

    onLogoutClick : function() {
    Ext.Ajax.request({
    url: 'portalUI/logout.jsp'

    })

    }


    })


    Thanks in advance.

  2. See if this works for you

    Code:
    onLogoutClick: function () {
        window.location = 'portalUI/logout.jsp';    //redirects to url
    }

  3. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,900
    Answers
    369
    Vote Rating
    176
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    See if this works for you

    Code:
    onLogoutClick: function () {
        window.location = 'portalUI/logout.jsp';    //redirects to url
    }

  4. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    5
    Vote Rating
    0
    rich9285 is on a distinguished road

      0  

    Default


    It worked. Thank you very much

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