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: Change view in sencha touch 2

    Answered: Change view in sencha touch 2


    I had make a controller in sencha touch 2 in which i am performing an ajax request.

    I want to change the view on suceess.

    Currently i am using
    var firststep = Ext.create('Myapp.view.Rangeselector'); Ext.getCmp('loginForm').destroy();
    Ext.Viewport.add(firststep);

    It is destroying loginForm but didn't load Rangeselector view.

    Can anyone please give me a solution.

  2. Hi deepakgarg89,

    try this:
    Code:
    var firststep = Ext.create('Myapp.view.Rangeselector');
    Ext.Viewport.setActiveItem(firststep);
    It's not enough to just add your view to the viewport, you already have to navigate to it

    Best regards,
    Schildi

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