Home     |      Learn AJAX     |      Forum     |      Register     |      Submit Resource     |      Submit Article      |      Contact Us

Home JavaScript
 

JavaScript and the Idea of MVC

 

The internet started out with a simple HTML. Through HTML, developers are able to build websites to be informative. The internet was then used for gathering and sharing information.


Simple applications could be integrated with HTML but there are limiting factors that were proven to be the disadvantage of HTML.


Among the disadvantage of HTML is the inability to do real time updates for the user. HTML has to be continuously clicked on so that new information will be possible.


Page reloading is also one of the disadvantages of HTML. The user will have to completely reload the webpage before new data could be displayed.


Users started to experience real time interaction with websites when Ajax or more specifically, JavaScript became popular.


Through JavaScript users should be able to experience real time interaction of the website as they will receive updates without having to refresh the whole webpage.


The beauty of JavaScript is that it utilizes the client side instead of the server side. There are other real time applications such as Java and Flash could provide the same experience but they will require downloads and installation from the user.


When JavaScript became popular, what really changed was the idea of MVC (Model View Controller). MVC is a type of website rendering wherein it has a specific source, controller and output.


In HTML, the model-view-controller only happens between the browser, the server and HTML. But with JavaScript, the stage was changed wherein the client-side became the model and controller at the same time.


Although a server is still required to properly run the application, the loading will not come from the server but the client side will be the one to pull the information from the server. That means the load and the speed of execution will not be based on the server but on the user.


This is certainly revolutionary for developers since JavaScript will give them the freedom to do almost anything in the browser. Because of Ajax and JavaScript, developers were able to build applications instead of websites.


Applications that could rival local desktop applications are now popular. Anyone that has a constant and reliable broadband internet should be able to enjoy the online services in no time. They don’t need to download anything except a browser and a strong internet connection.


But the revolution of the concept of MVC has its downsides. Since the concept has changed, the security protocol for MVC should be changed as well. But keeping up with the security measures is often difficult for developers who wanted to offer the best for their users. This creates an opportunity for hackers to extract information from Ajax and JavaScript applications.


The popularity of JavaScript has certainly paved the way for new online experience. This has also changed the common perception of MVC wherein there is a shift from the server side experience to the client side experience. But security should be able to cope up with the changing shift of MVC or else it will create an opportunity for hackers to exploit Ajax based websites.



Read Next: JavaScript on PDF



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links