Thanks alot, i will give it a shot!

farzana

-----Original Message-----
From: [Gauthier] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 10:24 AM
To: Multiple recipients of list witango-talk
Subject: Re: Witango-Talk: fucused item????


at quick thought: You should try to set a js variable when clicking on the
textarea this.name
<script>var wichtextarea;</script>
<form action="formhandler.taf" method="post" name="myform">
<textarea name="textarea1"
onfocus="document.forms['myform'].elements['wichtextarea'].value=this.name">
</textarea>
<textarea name="textarea2"
onfocus="document.forms['myform'].elements['wichtextarea'].value=this.name">
</textarea>
<textarea name="textarea3"
onfocus="document.forms['myform'].elements['wichtextarea'].value=this.name">
</textarea>
<input type="hidden" name="wichtextarea" />
</form>

after have posted this  form, you will get the last textarea that was
clicked before the form beeing submited into <@postarg wichtextarea>

you may elaborate a better function testing the length of form elements and
disallowing any input if one is already filled
so you are sure that there is only one textarea filled.

anyway hidden inputs are often usefull with the right javascript

hope this help :)

Gauthier
----- Original Message -----
From: "Dost, Farzana" <[EMAIL PROTECTED]>
To: "Multiple recipients of list witango-talk" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 4:04 PM
Subject: Witango-Talk: fucused item????


> I have x many text areas in a form with one button.
> The textareas are dynamic so i don't know their names, unless i read them
> from my data table.
>
> If i click on one of the text areas and highlight its text and then click
on
> the button, how can i find out which text area has the selected text?
>
> I do not want to create one button for each textarea.
>
> Any ideas how to do this?
>
> Farzana
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to