Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Webtextedit Mousemove event in XSLT
posted

Hi, I need help please.

No clue in xml & WebtextEdit, I am editing an xslt stylesheet that creates asp controls.

Below is the WebTextEdit control, I want to add an mousemove event:

       <xsl:element name="igtxt:WebTextEdit">
            <xsl:attribute name='id'><xsl:value-of select='$Name' /></xsl:attribute>
            <xsl:attribute name='runat'>server</xsl:attribute> 
     <xsl:attribute name='Text'><xsl:value-of select='$Value' disable-output-escaping="yes" /></xsl:attribute>                                                      <xsl:attribute name='MouseMove'>"<xsl:value-of select='@name' />".style.color = '#006AB6';</xsl:attribute>
     <xsl:for-each select="$Attributes/Attribute">
              <xsl:if test=". != ''">
                <xsl:attribute name='{@name}'><xsl:value-of select='.' /></xsl:attribute>
              </xsl:if>
            </xsl:for-each>
            <xsl:copy-of select="$Events" />
          </xsl:element>

The code works to change the style as it works on other objects.

Please assist with how i can add a mouseover event to WebTextEdit control

 

Parents
No Data
Reply
  • 45049
    posted

    I've never tried setting up ASP.NET controls using XSLT before.

    You want to set the MouseMove attribute of the ClientSideEvents element underneath the WebTextEdit.  The value of this attribute should be the name of the JavaScript function you want called when the event is raised.

    As you've already seen, setting a MouseMove attribute on the WebTextEdit itself has no effect.  Our controls listen to client-side events in a different manner than most ASP.NET controls, since we need to render information to different places in the HTML output for certain events.

Children