Hi, I have a loop with elements from type "Card". Initially the loop shows as many (same) images as there are in the Vector "cardsLayout". If I click on one of these pictures I would like to show the card's text in place of this picture.
Something like: if image at position of card with id=4 gets clicked, show all other images like before, but show at position with id=4 a text instead of this image. Is there some use of if/else possible? Or what would be the aproach of getting hold of the clicked element? <span t:type="loop" t:source="cardsLayout" t:value="card"> <t:actionlink t:context="card.id" t:id="turnCard"> <span class="background24"><img src="bilder/deckblatt24.jpg" /></span> <!-- on the clicked id I want to show this instead of the image: <span class="background24">${card.text}</span> --> </t:actionlink> </span> I also tried to use some javascript but for some reason the javascript code gets ignored.. It is only my first week learning tapestry so please excuse me if I miss something obviously.. thanks for helping! Juliane _____________________________________________________________________ Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren! http://freemail.web.de/club/landingpage.htm/?mc=025555 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]