Barracuda: dynamically setting the value of the class-attribute

Jan Marten Visser <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Organization Virgil B.V.
Message-ID <[email protected]>
Hi,

I got this HTML template:

<html>
...
<table>
  <tr>
    <td class="ThisIsMyProblem" id="Name">Some text</td>
  </tr>
</table>
...
</html>

I want to be able to change the class-attribute dynamically, when the
row is even, I want the class attribute to be "even", when it is odd I
want the attribute to be "odd". For clairity: I am using the class
attribute as a reference to a stylesheet class, the id-attribute refers
to the directives file.

Ik know of course how to populate the tags between the <td>'s, but I
don't know how to set the tag-attributes themselves dynamically.

Any tips?

_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.