Thread: spry:if
View Single Post
Old 04-28-2008, 10:53 PM   #1
Join Date: Apr 2008
Posts: 3
Default spry:if

In Dreamweaver I have a spry table that displays products. I would like to filter the table on the type of product. I have found some code and tried to ammend that. This uses the Spry:if statement, However no rows are being displayed. The test below is meant to check if the first character is b o or c.
Basically I cannot find a good explanation of spry:if, Spry:when, Spry:test, spry:choose to resolve this.
Any suggestions please.
<div spry:region="dsProductTypes" spry:if="{ds_RowCount} != 0" >
<th spry:sort="SubType">SubType</th>
<tr spry:repeat="dsProductTypes" spry:test="'{Type}'.match(/^[boc]/i);" spry:choose="" sprydd="OddRow" spry:even="EvenRow" spry:hover="" spry:select="">
Crippolini is offline   Reply With Quote