Results 1 to 5 of 5

Thread: [Solved] Viewport / Window hide issues

  1. #1
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
      0  

    Default [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
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    61
      0  

    Default

    Hide the Viewport? The Viewport is the HTML body.

    You could mask it by specifying that the Window is modal.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  3. #3
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
      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
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    61
      0  

    Default

    OK, that's a different thing from hiding. You could just not create the Viewport until they log in.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  5. #5
    Ext User
    Join Date
    May 2009
    Location
    Bucharest Romania
    Posts
    5
    Vote Rating
    0
      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 .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •