1. #1
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
    CoolGoose is on a distinguished road

      0  

    Default [Solved] Viewport / Window hide issues

    [Solved] Viewport / Window hide issues


    Hi guys. I'm trying to do the following:
    Present a login window for the user and after the user provided the correct user + password combination i want to display a panel with some content.

    The trick is that if i use hide() to hide the viewport with the panel the window gets hidden as well (even if it's not in the viewport). I assume that it's because of the fact that the viewport it attaches itself to the body.

    Here's the code.

    Can you give me any tips ? Thanks
    Last edited by CoolGoose; 14 May 2009 at 4:59 AM. Reason: problem fixed

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Hide the Viewport? The Viewport is the HTML body.

    You could mask it by specifying that the Window is modal.

  3. #3
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
    CoolGoose is on a distinguished road

      0  

    Default


    Thanks for the tip.
    My only concern is security related. If somebody uses firebug he could just hide the modal window and see what's below.
    But i could just leave the viewport empty and add the extra data after the login window gets closed.
    That should work right ?

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    OK, that's a different thing from hiding. You could just not create the Viewport until they log in.

  5. #5
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
    CoolGoose is on a distinguished road

      0  

    Default


    Ok I've moved the viewport creation after the success method of the login window.
    It seems to do the trick nicely.

    Thanks again for your help .

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