How to implement MVC using pure Javascript?

Is it possible to implement single page javascript applications using Prototype.js?

  • Answer:

    You can implement a single-page JavaScript app in plain ol' JS and/or with any ol' framework -- this type of app isn't library-dependent. It all depends how you architect it.

Tara Marchand at Quora Visit the source

Was this solution helpful to you?

Other answers

Yes, it's totally possible. But depending on the complexity of your app, it would be better to spread it over many sources for better maintenance. For particularly large apps, I find PrototypeJS allows me to write it neatly by creating a sort of MVC architecture where I can build classes, and then put it all together in controller scripts. It would be good to min your class scripts and load them right at the onset according to need.

Shubhojoy Mitra

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.