AJAX Made Easy - Learn AJAX



JavaScript Tutorials

 
Home JavaScript
 

JavaScript Sandbox

 

The rush in the development of applications for the web has been phenomenal. What used to be a simple browser for finding information in websites has become the platform for different web-based applications. Office applications can now be obtained online, eliminating the need for software to be installed in local computers.


A few months ago, the popularity of web based applications especially for office productivity has made lot tech observers to reconsider the future of local applications. Although that question has died down, that doesn’t mean the possibility of completely porting office and other applications online has been left out.


The language preferred in this rush of different applications is JavaScript. This programming language is the main language used in building Ajax based applications. Since 2005, Ajax became the leader in web development because of its careful interaction with the user. The application could be easily loaded to the client and no prior installation is required just to make the application work.


Ajax relies on the server’s capability of loading the application as well as bandwidth. With the use of JavaScript, developers are able to build rich internet applications without the need of prior installation. This greatly differs from Flash and Java based applications since these types of applications will require prior installation to the local user.


Introducing Sandbox


JavaScript’s ability to port applications to the browser without the need of prior installation has been credited to JavaScript sandbox. An actual sandbox is a place where a kid could build different buildings or other things depending on their imagination. If you take that definition to JavaScript sandbox, developers could freely build different applications or programs within JavaScript with virtually no limitations. The sandbox has become a virtual platform for different types of applications. That is why JavaScript is touted to be the main player in ushering powerful Web 2.0 applications.


The sandbox in JavaScript is not an independent application that could be installed in local computers. The sandbox is a platform that could be launched in another platform – the browser. Using the internet connection, the server could load the sandbox and eventually, the application to the browser. Through JavaScript sandbox, the browser became another platform where different applications could be launched in no time.


However, developers of online JavaScript applications have to deal with a major security concern. For the sandbox to be properly loaded in the browser, it has to consider different resources. The sandbox will use the server as the source of application; it will use the user’s available data for additional interaction and will use the internet in loading other online applications. Since it uses different sources, same origin policy is not observed. The same origin policy has to be observed by developers to prevent hackers from infiltrating the system and extracting information for illegal use or just to destroy the application.


JavaScript sandbox is a revolutionary tool for building an Ajax based application. As long as the developers observe the same origin policy, they should be able to build a highly efficient and safe web based application.



Read Next: Unobtrusive JavaScript for Better Ajax Applications



 

 

Comments



Post Your Comment:

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

Sponsored Links