1. #1
    Sencha User Fire-Dragon-DoL's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Vote Rating
    1
    Answers
    9
    Fire-Dragon-DoL is on a distinguished road

      0  

    Default Answered: MVC Architecture and "classic website" structure: should they be used toghether?

    Answered: MVC Architecture and "classic website" structure: should they be used toghether?


    Hi everyone, I'm about to build a website where I require to write a lot of html + css to give it a "custom" layout.

    I don't know which is the best approach if I should use it toghether with extjs. Usually I work with JQuery, which I just include and use a onReady function where I start to write scripts.

    Now with extjs the thing is more interesting, I have two valid approaches: Ext.onReady (similar to jquery approach) and the MVC architecture.

    I definitely prefer the second approach, however I don't know how should I create a viewport that allows me to write html without troubles (maybe I can avoid creating the viewport? Dunno).

    Can you point me to the correct choice, maybe suggesting me how can I write plain html inside components (expecially a panel or similar, I need to create a webpage) without troubles and by keeping the possibility to insert components (inside the html) from extjs?

    A guide/something similar is ok too.

    Currently the application I've already is totally based on the MVC architecture, but I use a panel with layout: fit as viewport with some buttons inside which opens different windows.

    Thanks for any good suggestion

    NOTICE: This is not a request of code, just some questions about program architecture.

  2. In my point of view, there would be no need of html if you are willing to use MVC of ExtJS. Almost everything has been provided in it. When you are using onReady, it would be naturally surrounded by html tags and scripts. When you are start work with MVC, html will not be comfortable to meddle with panels and other containers. And one more thing, you can insert html code inside panels easily but if you need to communicate to server with this code, it is going to be very painful. Using viewport is good.

    Regards,
    Premkumar. A

  3. #2
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Vote Rating
    2
    Answers
    7
    a.premkumar is on a distinguished road

      0  

    Default


    In my point of view, there would be no need of html if you are willing to use MVC of ExtJS. Almost everything has been provided in it. When you are using onReady, it would be naturally surrounded by html tags and scripts. When you are start work with MVC, html will not be comfortable to meddle with panels and other containers. And one more thing, you can insert html code inside panels easily but if you need to communicate to server with this code, it is going to be very painful. Using viewport is good.

    Regards,
    Premkumar. A

  4. #3
    Sencha User Fire-Dragon-DoL's Avatar
    Join Date
    Dec 2011
    Posts
    141
    Vote Rating
    1
    Answers
    9
    Fire-Dragon-DoL is on a distinguished road

      0  

    Default


    Quote Originally Posted by a.premkumar View Post
    In my point of view, there would be no need of html if you are willing to use MVC of ExtJS. Almost everything has been provided in it. When you are using onReady, it would be naturally surrounded by html tags and scripts. When you are start work with MVC, html will not be comfortable to meddle with panels and other containers. And one more thing, you can insert html code inside panels easily but if you need to communicate to server with this code, it is going to be very painful. Using viewport is good.

    Regards,
    Premkumar. A
    Mmmmh. Well, but achieving some website graphics with just components is much longer than doing the same with simple html + css, I'm afraid that doing it with ExtJS will require much more time than it's usually required.

    Dunno, but I will try with the MVC approach 'cos I really like it.

  5. #4
    Sencha User
    Join Date
    Mar 2012
    Location
    Chennai, India
    Posts
    71
    Vote Rating
    2
    Answers
    7
    a.premkumar is on a distinguished road

      0  

    Default


    Yeah you should try that. Initially it looks very alien but when we get used to it, everything becomes easier than we think. Goodluck

Thread Participants: 1

Tags for this Thread