Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   spry:if (http://www.dreamweaverclub.com/forum//showthread.php?t=27838)

Crippolini 04-28-2008 10:53 PM

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" >
<table>
<tr>
<th spry:sort="SubType">SubType</th>
</tr>
<tr spry:repeat="dsProductTypes" spry:test="'{Type}'.match(/^[boc]/i);" spry:choose="" spry:odd="OddRow" spry:even="EvenRow" spry:hover="" spry:select="">
<td>{SubType}</td>
</tr>
</table>
</div>


All times are GMT. The time now is 11:01 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com