[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Trying to write a JavaScript variable the value of

Subject: Re: Trying to write a JavaScript variable the value of a form field
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Tue, 04 Oct 2005 09:32:43 +0200
javascript variable input name
Hi,

<input value="<script src="{$themePath}/scripts/link-parsed-variable.js" type="text/javascript"><xsl:text> </xsl:text></script>" name="uP_fname" type="hidden" />

This doesn't look like well-formed xml to me, nor like good HTML either. You cannot use elements inside attributes.


I want to put a javascript document.write within the <input value=""...

Can't you do something like this: <input name="myinput" value="" .../> <script> myinput.value = "myvalue"; </script>

Cheers,
Geert

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.