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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript in xslt

Status
Not open for further replies.

ozane

Technical User
Joined
Feb 3, 2005
Messages
57
Location
TR
i have xslt containing some hyperlinks. i need to add some variables to url's as querystring. those variables will come from labels on the page.
ok how can i retrieve those values from textboxes using javascript in xslt. i found some links but couldnt achieve. browser is not running javascript in xslt. something like that.
Code:
<xsl:variable name="adres">
<script type="text/javascript" language="Javascript">
<![CDATA[	
var adres;
adres=3;
]]>
</script>
</xsl:variable>
for example i will use the adres variable somewhere in xslt.
 
If you want the to submit the page and use those submitted variables in the XSL transform, you can do that easily server-side.

If, however, you want to do it client-side, you need some code like this:


Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top