Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass textarea tags via function

Status
Not open for further replies.

MillsRJ

Technical User
Sep 14, 2002
28
CA
I am trying to format a series of textareas by passing data to a function and returning the tag line. I'm having some problems with the formatting of the return value of the function.
<dumb??>
also,do I need to pass the array to the function, or is it just in memory and doesn't need to be passed.
</dumb??>

your help is really appreciated

ps. yes, I did a search and looked in the FAQ's, but if you know of something I missed, please don't hesitate to point me there.



browser - IE6 everywhere
tool - DreamweaverMX
backend - SQL7.0

here is the code for the text area

<input name=&quot;day1&quot; type=&quot;text&quot; id=&quot;day1&quot;
<%response.write(buildstring(sday1,(qryElements.Fields.Item(&quot;numelementid&quot;).Value),dataArray))%>
size=&quot;5&quot; >

function buildstring(lookdate,subcat,dArray)
dim numRows,i,lockcheck
' on error resume next
numRows = ubound(darray,2)
if numRows = 0 then
buildstring=&quot;Value = &quot;&quot;0&quot;&quot;
else
do until dArray(1,i) = subcat and dArray(2,i) = lookdate
for i = 0 to numRows
if dArray(3,i) = 1 then
buildstring = &quot;style=&quot;&quot;background-color:yellow&quot;&quot; READONLY Value = &quot;&quot; & dArray(4,i) & &quot;&quot;
else
buildstring = &quot;Value = &quot;&quot; & dArray(4,i) & &quot;&quot;
end if
next
loop
end if
end function

Rob Mills
System Analyst
Correctional Services Canada
(all statements are my own ...., ah hell, its the government, sue'em anyway)
 
well, shortly after I finished typing the question above, I found the following article(s)

and

I'm hopefull that they'll work, but if you have a better idea, please let me know

thanks



Rob Mills
System Analyst
Correctional Services Canada
(all statements are my own ...., ah hell, its the government, sue'em anyway)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top