Home arrow JavaScript arrow Page 5 - Client-side and Server-side JavaScript
JAVASCRIPT

Client-side and Server-side JavaScript


This article explains the three major types of JavaScript, client-side, server-side and the core language. Server-side JavaScript is ideal for creating web applications that can be run on any platform, on any browser, and in any language. See the article for other advantages and disadvantages of each.

Author Info:
By: Ibama Supreme Tmunotein
Rating: 4 stars4 stars4 stars4 stars4 stars / 121
October 20, 2004
TABLE OF CONTENTS:
  1. · Client-side and Server-side JavaScript
  2. · Core JavaScript
  3. · Client-Side and Server-Side JavaScript
  4. · CSJS vs. SSJS
  5. · SSJS VS. CGI
  6. · SSJS

print this article
SEARCH DEVARTICLES

Client-side and Server-side JavaScript - SSJS VS. CGI
(Page 5 of 6 )


 
So how do SSJS and the LiveWire database access engine stack up against CGI?  SSJS is faster and more efficient for web applications, particularly those that access a database. In internal Netscape tests, SSJS was three times faster than Perl CGIs for database access. There are distinct advantages and disadvantages to each approach, as detailed in the following table.

SSJS

CGI

Advantages: 

  • Provides state management capabilities.
  • Is based on a standardized language (ECMA Script/JavaScript).
  • Provides built-in database access via the LiveWire Database Service.
  • Includes the Visual Development Tool (VJS).
  • Means that client and server programs can be written in JavaScript.
  • Allows code reuse between client and server applications.
  • Extends functionality using Java (via LiveConnect).
  • Caches database connections for faster performance.
  • Runs three times faster than CGI.
  • Scales better than CGI.

Advantages: 

  • Is very portable -- can be run on any CGI-enabled web serer.
  • Can be programmed in a variety of languages (C, Java, Perl, and so on).

Disadvantages: 

  • Requires a JavaScript-enabled web server.
  • Requires that the application run in-process with the web server. 

Disadvantages: 

  • Is slow, as a separate process is spawned every time the CGI is executed (which is taxing on the server).
  • Makes state management difficult to implement.
  • Makes database access available only via separate libraries.

Don't overlook the important advantage of using a common development language. If you're using SSJS to create your web applications, you're using JavaScript on both the client and the server. You can concentrate on a single language syntax when you create both the client and the server parts of your application. The syntax is also similar to Java, providing more synergy and code reuse in your development efforts. 
 

Next: SSJS >>

blog comments powered by Disqus
JAVASCRIPT ARTICLES

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials