• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

AJAX Frameworks - Server side versus Client side ...

The advent of AJAX has brought about a lot of frameworks to the bill board, all boasting about their inept qualities in providing you the best from the rest. But how would you go about choosing a right kind of framework for your application.

View More Info

The advent of AJAX has brought about a lot of frameworks to the bill board, all boasting about their inept qualities in providing you the best from the rest. But how would you go about choosing a right kind of framework for your application.

In order to make things simple, the overall horde of AJAX frameworks can be classified into two major leagues:

  1. Server Side Framework
  2. Client Side Frameworks

Server Side Frameworks
Server side frameworks as the name suggests are used on the server side. But you would ask as to how AJAX, which involves JavaScript is used on the server side. Its not actually JavaScript that is used in such frameworks on the server side. In fact you use the same language API’s provided by the framework to do your client side activities and on deployment these client side activities coded on the server side get translated to normal AJAX functionalities when deployed. Confused? Let me clarify your this with an existing server side framework.

Google Web Toolkit (GWT) is such a server side framework which is used as a normal Java Swing kind of programming on the server side in web pages using the GWT API. The GWT provides a tool for deploying your web application having such pages. During the deployment of the web application the GWT tools help in translating the Java syntax into the corresponding AJAX functionality to be brought on the client side.

Advantage of Server Side Frameworks
The advantage of using a server side framework is that you use the existing language you are working in. You do not have to dwell in the wild wild world of JavaScript. Its easier to use a server side framework rather than to learn JavaScript.

Other server side frameworks are : Yahoo Toolkit, DWR

Client Side Frameworks
You must have done AJAX in the normal fashion using the XMLHTTPRequest object in a JavaScript file and then provided some callbacks to do the asynchronous requests. Providing this much is good enough for a simple AJAX page to do one or two requests. But in a large application much more functionality is required. I would list out some of these functionalities as follows:

  • Cross browser compatibility - When you code its always a necessity that the code works independent of the browser type requesting it
  • Mutliple request handling - Multiple asynchronous request have to handled properly when doing the callbacks
  • Graceful degradation - You don’t want your code to fall flat on its face in case the browser does not support the XMLHTTPRequest object
  • Exception and error handling - You should be able to catch the exceptions in your code instead of displaying it to the user

To do all this yourself is very tedious and requires a lot of JavaScript expertise. To avoid all this mayhem you have client side frameworks to your rescue. They provide packages and API’s which help you to implement all of the above functionalities and also provide a lot of extra features which currently can be either found in free JavaScript code snippets over the net.

The extra features include widgets or even an IDE. Widgets are small interfaces or components which can be incorporated in an application easily through the client side frameworks. These widgets might compose of the following:

  1. Auto completing combobox
  2. A Menu system
  3. An accordian
  4. A tabbed pane windows
  5. Effects like fade, zoom in /out

Advantages of Client Side Frameworks
Besides the above specialties the advantage of a client side framework over a server side framework is that you have the complete flexibility in your hands. You can mix and match the widget features and at the same time provide extra flexibility as you have the world of JavaScript at your disposal. Some frameworks like TIBCO GI even provide a GUI to build your web pages with AJAX components in a complete drag n drop style.

The examples of a client side framework are Prototype, DOJO Toolkit, Rico, Script.aculo.us, etc.

Going out to choose a framework in the AJAX field can be a bit overwhelming since you might think all look the same. But if you keep in mind the above classification then you can well have a feature matrix in front of you and also take less time in deciding on going for a particular one.

Original Source: AJAX Frameworks - Server side versus Client side

 View Full Story.
Posted at 10:05:43 am | Permalink | Posted in Toolkits  Articles  

Related Stuff

  • MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.

  • Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone

  • TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support

  • ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.

  • Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.

  • Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software

  • PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

6 Comments |Add your comment.

akond said:

To Rahul Umrikar:The solution to this problem is to enable javascript.

Posted at August 1, 2007 08:38:21 am
Guy Peled said:

GWT is not a server side framework. Although it uses Java to write JavaScript the end result is a big blob of serialized JavaScript which runs in run-time. It is a big difference as GWT is actually a client side framework which is written using Java. Server side frameworks are like ASP.NET 2.0 AJAX which provides you the ability to perform to actually work on the server which is more suitable for real world applications. Another framework is Visual WebGui which I am the project leader and it is 100% server side as it provides full server side control over the client AJAX layer... bottom line GWT is not a server framework it is a common mistake.

Posted at May 7, 2007 05:25:30 am
Philip Weaver said:

GWT is a client side framework which happens to shield the developer from JavaScript by using Java as the development language.

Posted at April 14, 2007 12:26:45 am
Philip Weaver said:

It is my understanding that GWT is a client side framework and thet frameworks such as Echo2 and ZK are server side frameworks.

Posted at April 14, 2007 12:24:42 am
Rahul Umrikar said:

Hi, When javascript is disabled then ajax is helpless in most of the cases. When accessibility is in consideraton then we have maintain the same look an feel (similar) to existing web pages. So what is the solution to problem ?

Posted at April 6, 2007 12:51:45 pm
Joe Abrams said:

Check out this www.ajaxdiff.com site which is a new community platform for comparing AJAX frameworks. It is completely open for community contributions allowing adding and updating framework details and indexing related publications. The platform was aired today with initial content and is waiting for you guys to start pumping information to it.I will be happy to receive feedbacks. The site is built upon a dedicated framework that will be updated with your ideas.Thanks,Joe Abrams

Posted at April 5, 2007 08:35:23 pm

Your Comment ...

  Name (required)

  Email (required, hidden)

  Website


About Ajaxlines

Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.

Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.


Recent Stuff

CSS Animations via MooTools

JSON form builder

Using ASP.NET AJAX JSON Asynchronous Web Services

Growl for Windows and a Web Notification API

Learn AJAX from Scratch - Part II

Learn AJAX from Scratch - Part I


Our Partners

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines


Search


Topics

  • .Net (96)
  • Articles (76)
  • Bookmarking (35)
  • Calendar (18)
  • Chat (38)
  • ColdFusion (3)
  • CSS (31)
  • Email (23)
  • Flash (13)
  • Games (6)
  • Google (17)
  • Html (6)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (34)
  • Javascript (146)
  • JSON (17)
  • Perl (2)
  • PHP (82)
  • Presentation (19)
  • Python (3)
  • Resources (1)
  • RSS (1)
  • Ruby (7)
  • Storage (4)
  • Toolkits (87)
  • Tutorials (190)
  • UI (11)
  • Utilities (161)
  • Web2.0 (13)
  • XmlHttpRequest (18)
  • YUI (4)

© 2006 www.ajaxlines.com. All Rights Reserved. Powered by IRange