rst is the name of your recordset
<% do while not rst.EOF %>
<textarea name="taname" cols="30" rows="10"><%=rst("field in db")%></textarea>
<% rst.movenext
loop %>
Main Topics
Browse All Topicshow would I go about dynamicly filling in a textarea
where for each record there needs to be a <script> output and every now and again there has to be something that outputs to the text area. this is done in more than one area so it has to be done genericly. also using sql querys and on the fly updating after the textarea is created
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
unfortunatly not that simple. I cant use the first answer as all the processing is being done as the page loads and it needs to show on the pas as it is being processed, and the second one will not work as 1. I only want one textarea so I cant have the textarea in the loop, but I cant have the textarea around the loop either as there have to be other things that wont go inside a textarea (<script></script>) that have to be printed out as well.
if that makes some more sense? I hope it does I'm having a dificult time explaining this...
If you don't mind browser-dependence, an iframe sounds like it might work.
Here's a reference:
http://www.devguru.com/Tec
Could you not just go through the loop, passing whatever you want in the textarea to a variable, and all other outputs to a variable, and then before you skip to the next record, output the reponse, and then open up the textarea and put in the variable you've been passing info to.
<% do while not rst.EOF %>
----
<% do some code here
strOutput = whatever code you need to output
strOutput = strOutput + whatever else
strTextArea = whatever code is needed for textarea
strTextArea = strTextArea + anything else
then just out the variables %>
----
<%=strOutput%>
<textarea name="fSomeName" cols="50" rows="10">
<%=strTextArea%>
</textarea>
<% rst.movenext
loop %>
Business Accounts
Answer for Membership
by: gary_slandPosted on 2004-06-17 at 04:50:24ID: 11333537
<textarea name="fSomeName" cols="50">
<%=SomeCodeHere%>
</textarea>
Will put SomeCodeHere as the default text in the textarea. Is that what you meant?