cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: [cforms] window onload handler
Date Wed, 17 Mar 2004 12:14:38 GMT
Mark Lundquist wrote:

> Hello Cocoon dev-dudes,
>
> Believe it or not, people may sometimes still want or need to do some 
> client-side Javascript stuff... :-)
>
> I set a window.onload handler in some client-side Javascript, but it 
> got stomped by the
>     <body onload="forms_onload">
> added by the forms stylesheet.


Works here - due to:
  <xsl:template match="body" mode="forms-field">
    <xsl:attribute name="onload">forms_onload(); <xsl:value-of 
select="@onload"/></xsl:attribute>
  </xsl:template>

in the stylesheet.


Vadim



Mime
View raw message