O'Reilly logo

Dreamweaver MX: The Missing Manual by David Sawyer McFarland

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

Adding Dynamic Information

Once a recordset is created, it’s a snap to add dynamic information to a Web page. In fact, Dreamweaver provides several techniques to go about it. Start in the document window by clicking the spot where you wish to add the dynamic information. Then do one of the following:

  • Choose InsertApplication ObjectsDynamic Text.

  • Click the Dynamic Text button in the Application tab of the Insert bar (see Figure 22-2).

Either way, the Dynamic Text window appears (see Figure 22-6), listing the recordsets on the current page. Pick the database column (also called field) containing the information you wish to add to the page. You can pick only one column at a time, but you can repeat this process to add multiple columns to the page.

After you select a database field to add to a page, Dreamweaver displays the code that it will add to the page in the Code field. This is the programming code used to make the data appear on the page. It’s written in the programming language specified by the current server model.

Figure 22-6. After you select a database field to add to a page, Dreamweaver displays the code that it will add to the page in the Code field. This is the programming code used to make the data appear on the page. It’s written in the programming language specified by the current server model.

Note

The term Dynamic Text is a bit of a misnomer. Using this tool, you can also insert dates, numbers, and dollar values—not just text.

The format menu lets you format the data, such as making a date appear as January 17, 2004. Formatting is discussed in depth on the facing page.

Using the Bindings Panel

The Bindings panel (Figure 22-7) provides two other ways ...

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