Re: [xsl] Trying to write a JavaScript variable the value of a form field

Subject: Re: [xsl] 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
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