xsl-list
[Top] [All Lists]

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

2005-10-04 00:32:43
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>