|
Subject: RE: [xsl] How do we call Javascript function in XSL file on Netsc ape(Ver 6.2) browser? From: "Deshpande, Gururaj" <gururaj.deshpande@xxxxxxxxxxxx> Date: Wed, 10 Apr 2002 14:17:32 -0400 |
<a href="javascript:test('{prodxml}')"><xsl:value-of
select="equipmentno"/></a>
if I change javascript:test(... to javascript:alert(.... , Netscape pops
up the alert box.
For javascript:test(.... , Netscape javascript error is 'test not defined'
> -----Original Message-----
> From: Joerg Heinicke [SMTP:joerg.heinicke@xxxxxx]
> Sent: Wednesday, April 10, 2002 2:16 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] How do we call Javascript function in XSL file on
> Netscape(Ver 6.2) browser?
>
> Maybe AVT is not known to the XSLTransformer Transformiix. Try to use
> <xsl:attribute/> then. The <xsl:for-each> is not needed. And the matcher
> of
> the template can be shortened, because you have only eqpt-elements on this
> level.
>
> <xsl:template match="eqpt">
> <tr>
> <td>
> <a>
> <xslattribute name="href">
> <xsl:text>javascript:test('</xsl:text>
> <xsl:value-of select="prodxml"/>
> <xsl:text>')</xsl:text>
> </xsl:attribute>
> <xsl:value-of select="equipmentno"/>
> </a>
> </td>
> <td><xsl:value-of select="description"/></td>
> </tr>
> </xsl:template>
>
> Joerg
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How do we call Javascript, Chuck White | Thread | [xsl] Re: Seperating a delimited St, Dimitre Novatchev |
| Re: [xsl] How do we call Javascript, Joerg Heinicke | Date | Re: [xsl] How do we call Javascript, Thomas B. Passin |
| Month |