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

Joseph W. Lowery

"Dreamweaver CS3 Bible"

js and xpath.js; both are placed in a SpryAssets folder at the root of the local site.
After you??™ve completed the Spry XML Data Set dialog box, the data set is listed in the Binding panel; expand
the entry to view the included columns, as shown in Figure 18-4.
FIGURE 18-4
Once a connection to your Spry data set is established, the available columns appear in the Bindings panel.
599
Powering Ajax Pages with Spry 18
In Code view, the data set object is declared through the JavaScript keyword new:
var ds1 = new Spry.Data.XMLDataSet(???example.xml???,
???events/event???,{sortOnLoad:???name???,sortOrderOnLoad:???ascending???});
Next, you??™ll learn how to identify specific areas of the page as Spry regions.
Defining Spry regions
Once a connection to an XML data source is established, the next step is to define the regions on the page
where that data can be used. A Spry region is identified by a proprietary attribute, typically added to either
or tags, like this:

There are two types of Spry regions: master and detail. The master region uses the spry:region attribute,
whereas the detail region uses spry:detailregion. A detail region is one that depends on a selection
from a master region. For example, you could have a master region that includes the addresses of various
properties, while the detail region might show an image as well as a description of the user-selected property.


Pages:
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085