[XSL]PB d'appel de fonction javascript ?
bonjour,
J'ai un template XSL. je n'arrive pas à récuperer mes objets dans ma fonction MontreCache. j'ai undefined comme message chaque fois :cry:
mon bout de template
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<span id="$id" >
<a onmouseover="alert('{$id}'); MontreCache('{$id}','{$id_cache}')"
onmouseout="MontreCache('{$id}','{$id_cache}')">
<xsl:attribute name="href"><xsl:value-of select="$url" /></xsl:attribute>
<img class="ico" src="images/IcoRechercher18x18.gif" alt="Rechercher"/>
</a>
</span>
<span id="$id_cache" style="display: none">
<a onmouseover="MontreCache('{$id}','{$id_cache}')"
onmouseout="MontreCache('{$id}','{$id_cache}')">
<xsl:attribute name="href"><xsl:value-of select="$url" /></xsl:attribute>
<img class="ico" src="images/IcoRechercher18x18Hover.gif" alt="Rechercher"/>
</a>
</span> |
ma fonction js :
Code:
1 2 3 4 5
|
function MontreCache(obj1, obj2) {
alert(obj1.id);
...
} |
si au lieu des $id et $id_cache, je mets un nom en dur, là ça pmarche.
D'où vient le pb ?
MERCI BEAUCOUP !!!!