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

How and When to Use AJAX ...

The following are scenarios where it’s more likely to be beneficial to use AJAX functionality:

Highly interactive applications - where an application is highly interactive, it may provide benefits to use AJAX to allow the interactivity without the time cost of page reloads. A good example of a highly interactive web site is Google Maps.

Parts of pages – AJAX is best used in key places throughout a web site where it adds significant value. There is little or no value in using AJAX to provide the majority of your page content – you may lose browser compatibility, make the application overly complex and cause problems with the site being indexed in search engines.

Intranets – on an internal web site the bandwidth is much higher so more AJAX usage can be successful. It’s often the case that intranets involve working with data, and this is often a good application for AJAX.

Online wizards – linear user interfaces that collect a large series of data are a well-known challenge in web applications, and can be implemented using AJAX in a way where the user feels more in control and the application is more responsive.

Data input & validation – before AJAX it was hard to build anything resembling rich data input forms that give clear and accurate feedback to users. With AJAX it’s possible to validate the data the user enters, while they are entering it. They can then receive feedback (using the server’s intelligence) without the page being posted back. For example an email validation field could check if the email address is valid using the DNS, without the user knowing.

Data visualization – visualizing large datasets on the web can be difficult because there’s been no easy way to pull in more data as the user needs it. With AJAX it’s possible to show a view on the data, and simply load more in as needed. Again, Google Maps is a great example.

Here are some top tips for things you should consider when using AJAX:

Give visual feedback - When a user clicks on something in the AJAX user interface, they need immediate visual feedback, just like when a button presses in on a standard form. Immediate feedback helps users, and makes them more efficient.

Keep the Back button – make sure that the Back button in your application functions on every page of the site.

Use links for navigation – avoid the temptation to use links as an interface on your AJAX application to change the state of your application. Users have been trained over ten years to expect a link to “take” them somewhere, so give them what they expect.

Limit the scope of visual changes – when an AJAX call results in one or more changes to what the user sees, keep the changes local to the place where the user would expect them to be.

Use human-readable links – people like to pass the addresses of useful web pages to each other. Make sure your application supports URLs that people can share easily, so not too long or complex.

Don’t bloat the code – make sure that your application uses as little client-side scripting as possible. This reduces download time for the page and also reduces the processor requirements on the client browser, so results in a faster browser experience.

Follow UI conventions – AJAX is a world of possibilities, but when it comes to user interface the best is invariably the familiar. If you’re creating a user interface for a specific feature, the place to start is by replicating an existing successful interface and looking at what your clients expect. Also remember that although it may be cool to implement drag-and-drop, few people may realize the interface relies on it.

Don’t scroll – users like to feel in control, so if they have moved the scrollbar to a specific place, don’t move the page somewhere else.

Reduce page loads – do as much as you can to reduce the number of page loads the user has to do to achieve their goal.

Original Source: How and When to Use AJAX

 

 View Full Story.
Posted at 10:36:51 am | Permalink | Posted in Articles  Tutorials  XmlHttpRequest  

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.

Be the first ... |Add your comment.

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

Making AJAX Ro(a)R

Ruby on Rails Applications Development with Ajax

Facebook Drops Another Hurdle

FBJS and Ajax to acheive Facebook profile link tracking

Getting a JavaScript stracktrace in any browser

Ajax data picker Javascript


Our Partners

Facebook Applications

Ajax Projects

Web 2.0 Sites

Webloglines

Human Development Handbook

Software Development Company

Ajaxlines

Stock Exchange Chat


Search


Topics

  • .Net (109)
  • Articles (82)
  • Bookmarking (35)
  • Calendar (19)
  • Chat (39)
  • ColdFusion (3)
  • CSS (37)
  • Email (23)
  • Facebook (19)
  • Flash (15)
  • Games (6)
  • Google (26)
  • Html (13)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (36)
  • Javascript (169)
  • JSON (21)
  • Perl (2)
  • PHP (87)
  • Presentation (19)
  • Python (3)
  • Resources (2)
  • RSS (1)
  • Ruby (9)
  • Storage (4)
  • Toolkits (90)
  • Tutorials (196)
  • UI (11)
  • Utilities (166)
  • Web2.0 (13)
  • XmlHttpRequest (20)
  • YUI (4)

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