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]

Events for text boxs


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


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