concept ability in category javascript

appears as: ability
Prototype and Scriptaculous in Action

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.

Finally, we tell the server that the rating for this item has changed . We’ll be using core Ajax techniques to do this, and we’ll look at these in a minute. First, let’s review what we’ve done in order to get our two buttons up and running. We’ve visited a number of unusual language features in JavaScript, including the ability of Function objects to be called with arbitrary contexts (i.e., the variable that evaluates to this within the function), and the ability of Function objects to create closures implicitly. Both of these require quite a deep understanding of the language, which is fine if we like collecting unusual programming languages, but if we’re a Java or PHP coder seconded into doing a bit of Ajax work, it’s quite a lot to take on board.

The in-place editors gave us the ability to create controls that transformed display-only text into editable text, and those controls could tap into the power of the server. Another class of controls, the autocompleters, will help us make life easier for our users when they are faced with the dreaded situation of too much information!

Yes, it really is possible to have too much information—having the amount of information on the Web available at our fingertips is very useful, but it’s easy to be overwhelmed with a deluge of data. When designing user interfaces, particularly those for web applications, which have the ability to access huge amounts of data, it is important to avoid flooding a user with too much data or too many choices. In this section and the next, we will explore Scriptaculous controls that help page authors present large lists of choices to users in a friendly and manageable fashion.