O'Reilly logo

YUI 2.8 Learning the Library by Dan Wellman, Daniel Barreiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. DataSource and AutoComplete

We've seen how to retrieve remote information via the Connection manager. A lot of the information we use is structured as tables; anything coming from a database server is likely to be tabular. In this chapter, we're going to look at the DataSource, which allows us to fetch tabular data from different sources, both local and remote, and in different formats, extract the fields, parse them if necessary, and deliver them to the component that requested them. We will also see one of these clients, the AutoComplete control, which offers a list of choices based on what you type. Two more components use DataSource: DataTable, which we'll see shortly, and Charts, which is still beta and won't be covered.

The skills ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required