hi everyone,
I ecounter a problem for few days.
I don't manage to axpand something like this :
template>>>
<tr id="acteurs" class="acteurs">
<td id="td"><a id="a"/></td>
<td id="descrip"/>
<td id="valeur"/>
<td id="repetition"/>
</tr>
<<<template
ruby code >>>
....
data=Hash.new
data['acteurs']=Array.new
#on fait la liste des acteurs
liste = $_my.query("SELECT * FROM acteur")
i=0
while(result=liste.fetch_hash)
#couleur une ligne sur 2
result['@bgcolor']='#DDDDDD' if(i%2==0)
result['td']=[{"a"=>result['nom'], "@href"=>"toto.php"}]
data['acteurs'].push(result)
i+=1
end
#---------------------
center=template.expand(data)
....
<<<ruby code
The problem is that the href attribute is in the td tag, not in a !
I really looked everywhere in tutorial on xtemplate, and nothing really
helped me.
So, if someone help me out, it would help me very much.
Thanks.
simonced.