Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to do get a value of Prompt text using XSL?

Status
Not open for further replies.

luotavia

Programmer
Aug 22, 2002
2
BR
I would like change a value of prompt text before of processing.
I think change the promptConstant_text.xsl

There is an attribule VALUE:

<xsl:attribute name=&quot;VALUE&quot;>
<xsl:value-of select = &quot;./pa[@ia='1']&quot;/>
</xsl:attribute>

I want change to:
<xsl:attribute name=&quot;VALUE&quot;>
<xsl:eval language=&quot;VBScript&quot;>MY_Function(prompt value)</xsl:eval>
</xsl:attribute>

How to obtain the prompt value? And to pass it to My_Function?
 
1) you need to put the my_function javascript into the xsl upfront so that it shows up in the html

2) since the value prompt is essentially a form text box, the better way is to intercept the submit button action to call your function with the value of the text box. CHeck any html and xsl guidebook for the correct syntax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top