Re: [xsl] Set XSL-Value in a JavaScript

Subject: Re: [xsl] Set XSL-Value in a JavaScript
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 30 Sep 2008 13:24:47 +0200
henry human wrote:

  <xsl:template match="/details">
    <html>
    <head>
  <script type="text/javascript">
function OnSendForm(emailAdress)
{
document.myForm.action =emailAdress;
}
</script>

Why do you use JavaScript to set the action? Unless you plan on having different buttons to set different actions you could simply directly set the action attribute of the HTML form element:
<form action="{/details/address}" method="POST" enctype="text/plain">




--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread