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

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="" spry:odd="OddRow" spry:even="EvenRow" spry:hover="" spry:select="">

All times are GMT. The time now is 08:54 PM.

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