Re: [Ekit-info] example how to integreate it in a <form> with autocopy to hidden field when submit i
Brought to you by:
hexidec
|
From: troels <tr...@we...> - 2002-12-12 17:58:22
|
> hi,
> since my javascript knowledge quite bad, does somebody have an example
> on how to integreate the ekit-applet it in a <form> with autocopy to
> hidden textarea field when submit button is hit?
> bodo
out of memory, since i'm not near my computer right now, something like this :
<script type="javascript">
function formsubmit()
{
document.EkitDemoForm.data.value =
document.EkitDemoForm.Ekit.getDocumentText();
return true;
}
</script>
<form id="EkitDemoForm" method="post" onsubmit="return formsumit();">
(insert applet here ... )
<input type="hidden" id="data" />
<input type="submit" />
</form>
|