This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How do we call Javascript function in XSL file on Netscape(Ver 6.2) browser?


<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@gmx.de]
> Sent:	Wednesday, April 10, 2002 2:16 PM
> To:	xsl-list@lists.mulberrytech.com
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]