Re: javascript in xsl

Subject: Re: javascript in xsl
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 4 Dec 2000 03:26:16 -0700 (MST)
Krithiga Subramanian wrote:
> once we create a HTML using the xml and xsl, how can we trap events based on
> controls created.
> i.e if we have a list box created in the final HTML, how can i trap the on
> change event of the list box

List boxes (<select> elements) in HTML do not have onChange events. Only
<input> elements have onChange. See the Forms section of the HTML 4.01
recommendation.

This doesn't really have anything to do with XSL, unless you're
algorithmically creating differnt types of controls and are having trouble
determining how to swap in different attribute values for a given element
(write the element without the attribute, followed by xsl:attribute,
containing a xsl:choose/xsl:when block)

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread