Clearing text areas

Hi all,

Sorry in advance if the answer to this question is already on the site! I looked for a while there but couldn’t find anything - probably to do with my wording?

Does anyone know how to refresh a textarea everytime a button is pushed? I’m doing up a small flex application which sends parameters to a perl script and gets back results! One of the results is a list of times which i’m displaying in a textArea!

However, if the user presses the submit button a second time with the same or different parameters, the new list of results is added to the bottom of the old list! But I want the textArea to refresh evertime new parameters are passed so that on only the new set of results is displayed in the textArea! Is there any way of doing this?

Thanks a mil in advance

Regards,
Derm