xsl-list
[Top] [All Lists]

Re: [xsl] javascript hyperlink ?

2006-09-28 08:00:23
...
<xsl:param name="param" />
...
<a href ="javascript:jsFunction('{$param}')">Call to javascript</a>

OR

<xsl:template match="tag">
   <a href ="javascript:jsFunction('{.}')">Call to javascript</a>
</xsl:template>


patterj(_at_)twcny(_dot_)rr(_dot_)com wrote:

I'm trying create a hyperlink to a javascript function that passes a
parameter that is stored in the xml. I'm lost on how to accomplish this:

what the html should look like:
<a href ="javascript:void(0)" onclick="jsFunction('parameter')">
Call to javascript</a>




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--