SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1078 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Place your cursor within the Spry region where you??™d like your image to appear.
2. From the Common category of the Insert bar, choose Images: Image.
3. When the Select Image Source dialog box, change the Select File Name From option to Data
Sources.
4. If necessary, expand the desired data set node.
5. Select the data column that contains the filename of the image.
6. If the images are stored in a folder different from the current page, enter the path to the folder in
the URL field before the inserted code, as shown in Figure 18-7.
FIGURE 18-7
Any connected Spry data set can be accessed through the Select Image Source dialog box.
7. When you??™re done, click OK.
The methods covered so far will allow you to display a single set of data on the page. In the next section,
you??™ll discover how to display all the data by setting up repeating Spry regions.
603
Powering Ajax Pages with Spry 18
Repeating Spry regions
For Spry data regions to be truly effective, all the instances of the chosen data has to be displayed. Spry
offers a number of methods for easily setting up your data to be repeated, including the Spry Repeat and
Spry Repeat List objects. Both of these objects use either the spry:repeat or spry:repeatchildren
attribute, like this:

As with the spry:region, the spry:repeat attributes require the name of the data set to work with.


Pages:
1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090