doctor069
asked on
Jquery JTemplates - Repeat Columns
Hi -
I Am using JTemplates to create a table using ajax
<table border="1">
<tbody>
{#foreach $T as data}
<tr>
<td><img alt="" src='/libraries/users/{$T. data.UserI d}/{$T.dat a.IntroIma ge}' width="150px" height="150px" /></td>
</tr>
{#/for}
</tbody>
</table>
Is it possible to have the image repeat in 4 columns and then go to the next row?
ie (static)
<table border="1">
<tbody>
<tr>
<td><img alt="" src='/libraries/users/User Id/1.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/2.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/3.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/4.jpg' width="150px" height="150px" /></td>
</tr>
<tr>
<td><img alt="" src='/libraries/users/User Id/5.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/6.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/7.jpg' width="150px" height="150px" /></td>
<td><img alt="" src='/libraries/users/User Id/8.jpg' width="150px" height="150px" /></td>
</tr>
</tbody>
</table>
I Am using JTemplates to create a table using ajax
<table border="1">
<tbody>
{#foreach $T as data}
<tr>
<td><img alt="" src='/libraries/users/{$T.
</tr>
{#/for}
</tbody>
</table>
Is it possible to have the image repeat in 4 columns and then go to the next row?
ie (static)
<table border="1">
<tbody>
<tr>
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
</tr>
<tr>
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
<td><img alt="" src='/libraries/users/User
</tr>
</tbody>
</table>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Resolved?
ASKER
That did the trick! Thanks very much