Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
    cflynn07 is on a distinguished road

      0  

    Default Answered: Question about creating one application for multiple users

    Answered: Question about creating one application for multiple users


    Hi there,

    I'm working on learning Ext JS 4 and I have a general advice question:

    I'm developing a web application that will have two different user interfaces for two different types of users. One for 'managers' and another for 'users'.

    I'm considering building a single ext js 4 application with a viewport that has a 'card' layout. The first card displayed by default is the login prompt, and depending on what usertype the server indicates the user is, the application will display 1 of 2 panels that represents the interface for each user type.

    Is this a typical scenario? And are there any pitfalls I'm not aware of? Thanks!

  2. If the two interfaces are completely disjoint, I do not see any reason to try and glue them together in an accordion panel. Why not remove the login panel and add the appropriate 'welcome' panel to your viewport on login?

    For all purposes, I think that's simpeler?

    BTW: Im not necessarily advocating two different sets html files, js and css files. If your application is small enough that would induce more effort then necessary imho.

  3. #2
    Sencha User
    Join Date
    Dec 2009
    Location
    Enschede, The Netherlands
    Posts
    327
    Answers
    16
    Vote Rating
    13
    flanders will become famous soon enough

      0  

    Default


    If the two interfaces are completely disjoint, I do not see any reason to try and glue them together in an accordion panel. Why not remove the login panel and add the appropriate 'welcome' panel to your viewport on login?

    For all purposes, I think that's simpeler?

    BTW: Im not necessarily advocating two different sets html files, js and css files. If your application is small enough that would induce more effort then necessary imho.

  4. #3
    Sencha User
    Join Date
    May 2011
    Posts
    22
    Vote Rating
    0
    cflynn07 is on a distinguished road

      0  

    Default


    Thanks @flanders, I would have to assume the approach of dynamically adding views/panels depending on the login result is probably less resource intense than trying to load all of the views simultaneously in a card layout and only displaying one card depending on what type of user logs in.

  5. #4
    Sencha User
    Join Date
    Dec 2009
    Location
    Enschede, The Netherlands
    Posts
    327
    Answers
    16
    Vote Rating
    13
    flanders will become famous soon enough

      0  

    Default


    Exactly

    You avoid one level of nesting all the time, so thats worth something. And at startup (inital render time is important imho) you save time for the accordion plus all the panels you'll never show.

Thread Participants: 1