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]

Re: javascript in xsl


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

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