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 1214 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Dreamweaver??™s capability to conditionally hide or reveal areas of the page is extremely helpful for smoothing
the user experience. For example, suppose you have a Web application that shows all 23 items in a particular
recordset, 5 at a time, with Next and Previous links (see Figure 21-5). The record navigation controls
enable users to page through the recordset, forward and backward. When they reach the final record, the
Next and Last buttons should be hidden; when they??™re on the first record, the Previous and First buttons
should be hidden. I??™ve used Show Region If Not Last Record to hide the Next button and Show Region If
Not First Record to hide the Previous button.
FIGURE 21-5
Use Dreamweaver??™s Show Region server behavior to display or hide navigation buttons, depending on the dynamic
data shown.
TIP TIP
697
Managing Data 21
To apply a Show Region server behavior, follow these steps:
1. Select the page area you would like to conditionally show.
2. From the Server Behaviors panel, click Add and select one of the server behaviors from the Show
Record submenu. The dialog box for the specific Show Record server behavior you chose is displayed,
like the one shown in Figure 21-6. The dialog boxes for all the Show Record server
behaviors are identical.


Pages:
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226