Subject: [xsl] Events for text boxs From: "Russ Determan" <russ_determan@xxxxxx> Date: Mon, 10 Jun 2002 14:05:13 -0600 |
I can not get an event to be recognized..... why not? I want onCreate to set focus on the first text box.... then onChange I want to see if the key pressed was the enter key ...IF(keyCode=13)THEN call UserHitReturn() The follow code only fires the onChange event when a button on the form is pressed NOT when the text in the textbox changes...... HELP!!!!!! Do I just have a whole wrong idea on how XSL is supposed to be used? <xsl:for-each select="//label"> <xsl:if match="label[@name='E']"> <b><br/><xsl:value-of select=".//"/></b><br/> <INPUT TYPE="Text"> <xsl:attribute name="onChange">TestForScan("E,[" + '<xsl:value-of select=".//field"/>' + "],[" + '<xsl:value-of select=".//value"/>' + "],")</xsl:attribute> <xsl:attribute name="name"> <xsl:value-of select=".//field"/> <!-- NAMES THE TEXT BOX --> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select=".//value"/> <!-- PUTS A VALUE IN THE TEXT BOX --> </xsl:attribute> </INPUT> </xsl:if> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Flat file to hierarchy?, Denny, Allison M. (L | Thread | Re: [xsl] Events for text boxs, Thomas B. Passin |
RE: [xsl] Events for text boxs, Michael Kay | Date | Re: [xsl] Flat file to hierarchy?, Wendell Piez |
Month |