Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2011, 07:16 PM
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default access html form field in xsl

hello, My main xsl has a html input field whose value i want to assign to a xsl variable
(this is parent page and a pop up which opened from this had set a value for this input field in this parent)
i want to use this variable as a counter for some logic inside xsl.
i tried if javascript could help and tried this
Code:
<xsl:value-of select="js:getCodeCount()*"/>
but looks like xsl doesnt have anything like accessing javascript to assign to a variable.

Please help.
 
Old October 15th, 2011, 10:41 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

There usually is no interaction between XSLT and Javascript. XSLT might be done on the server and Javascript on the client. And even if you use client-side XSLT it is performed first and only once it is finished and its result document is rendered client-side Javascript can be used to open popup windows or read out input field values.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
Move form from table field into variable to run form AnninCT BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 April 17th, 2010 11:17 AM
Set form.field default value based on entry in another form rmccafferty SQL Language 1 February 11th, 2010 07:20 PM
XSL table to HTML ayamas XSLT 10 September 11th, 2006 06:45 AM
maximum size of HTML form field crmpicco HTML Code Clinic 4 April 24th, 2006 05:14 AM
Access HTML form values in a VB DLL madhukp Pro VB 6 2 July 25th, 2004 11:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.