Create properties for javascript link
Hi,
I would like to create properties for a javascript link in XSLT so that i can minipulate the popup window!
in the link onmouseup - i would like to create a property (titlebar) i can use in flowcentric to set the value.
<xsl:template name="BrowsePageNormal">
<xsl:param name="Name" />
<xsl:param name="ID" />
<xsl:param name="Attributes" />
<xsl:param name="Value" />
<xsl:param name="ActivityID" />
<xsl:element name="asp:textbox">
<xsl:attribute name='id'><xsl:value-of select='$Name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='style'>height : 19px; border : 1px solid #CCCCCC;</xsl:attribute>
<xsl:attribute name='ReadOnly'>True</xsl:attribute>
<xsl:value-of select='$Value' disable-output-escaping="yes" />
</xsl:element>
<xsl:element name="asp:imageButton">
<xsl:attribute name='id'>bp_<xsl:value-of select='$Name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='imageurl'>images/browse.gif</xsl:attribute>
<xsl:attribute name='alt'>Open Browse Page</xsl:attribute>
<xsl:attribute name='onMouseUp'>
window.open('browse2.aspx?o=<xsl:value-of select="$ID" />&a=<xsl:value-of select="$ActivityID" />&g=0&l=0&apb=<xsl:value-of select="$Attributes/Attribute/@name='autopostback'" />','','<xsl:for-each select="$Attributes/Attribute"><xsl:value-of select='@name' />=<xsl:choose><xsl:when test=".='True'">yes</xsl:when><xsl:when test=".='False'">no</xsl:when><xsl:otherwise><xsl:value-of select='.' /></xsl:otherwise></xsl:choose>,</xsl:for-each>status=no,titlebar=no')</xsl:attribute>
</xsl:element>
</xsl:template>
Regards,
|