Hi
I am trying to set an html action dynamically .
The prameter which I set for the action is saved in
xml file.
With the following code I can not set the parameter in
the JavaScript.
Thanks for any hint
***********XSL************
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/details">
<html>
<head>
<script type="text/javascript">
function OnSendForm(emailAdress)
{
document.myForm.action =emailAdress;
}
</script>
</head>
<body>
<p>Send feedback!</p>
<form method="post" enctype="text/plain"
name="myForm" action="">
<textarea name="mail" rows="7" cols="15" />
<input type="submit" value="Send!"
onklick="OnSendForm(<xsl:value-of
select="/details/address" /> )" />
</form>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
**************XML****************
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="text.xsl" ?>
<details>
<address >mailto:mymail(_at_)domain(_dot_)com</address>
</details>
--~------------------------------------------------------------------
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>
--~--