admin wrote:
Hello,
Could you provide a sample where we can see what javascript code do you want to use?
Regards,
ARI Soft
I discovered that by putting a <script> tag inside of your {coltemplate} tag, most, perhaps all JavaScript can be used. Here's what I'm now using to display a club listing at,
http://coloradosquaredance.com/index.php/necsdc-clubs
Code: |
{arijdatatable bPaginate="true" sPaginationType="full_numbers" iDisplayLength="25" bAutoWidth="false"}
{aricsvtable file="/data/xml/areaClubs_NE.csv" sortBy="dayWeek" sortDir="asc"}
{aricsvtablecolumns}
{aricsvtablecolumn id="dayWeek" alias="Day" pos="1" width="10%"}
{coltemplate}
<script>var day = '{$dayWeek}'.substr(2,3); document.write(day);</script>
{/coltemplate}
{/aricsvtablecolumn}
{aricsvtablecolumn id="clubIcon" alias="Icon" pos="2" width="25%"}
{coltemplate}<IMG SRC="/images/icons/{$clubIcon}" ALT="{$clubIcon}" width="80" >{/coltemplate}
{/aricsvtablecolumn}
{aricsvtablecolumn id="clubName" alias="Name/Description" pos="3"}
{coltemplate}<strong>{$clubName}</strong> - {$danceLevel} - {$clubDesc}
- <a href="http://coloradosquaredance.com/index.php/events-calendar/eventsbyyear/?search_fv={$clubName}" target="_top">View Club Events Calendar</a>
- {arilinkifier target="_blank"}Web Link: {$webLink} {/arilinkifier}
{/coltemplate}
{/aricsvtablecolumn}
{aricsvtablecolumn id="clubContactInfo" alias="Contact Info" pos="3"}
{coltemplate}{arilinkifier target="_blank"}{$clubContactInfo} - {$clubContactEmail}{/arilinkifier}{/coltemplate}
{/aricsvtablecolumn}
{aricsvtablecolumn id="venueName" alias="Venue" pos="4" width="25%"}
{coltemplate}{$venueName}, {$venueAddress1}, {$venueCity}, {$venueState} {$venueZipcode}
{/coltemplate}
{/aricsvtablecolumn}
{aricsvtablecolumn id="cssdaMember" alias="CSSDA" pos="5" width="12%"}
{coltemplate}{$Area} / {$cssdaMember}{/coltemplate}
{/aricsvtablecolumn}
{/aricsvtablecolumns}
{/aricsvtable}
{/arijdatatable}
|