logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Spry
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-28-2008, 10:53 PM   #1
Crippolini
 
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" >
<table>
<tr>
<th spry:sort="SubType">SubType</th>
</tr>
<tr spry:repeat="dsProductTypes" spry:test="'{Type}'.match(/^[boc]/i);" spry:choose="" sprydd="OddRow" spry:even="EvenRow" spry:hover="" spry:select="">
<td>{SubType}</td>
</tr>
</table>
</div>
Crippolini is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:48 PM.


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