xsl-list
[Top] [All Lists]

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

2008-09-30 07:25:20
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/

--~------------------------------------------------------------------
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>
--~--