Chris here is the code. Basically it presents cards to the page and when I
click on a card I want it to become invisible. (line xx)
I have not given you all the code that goes through numbering the cards etc.
I have done a alert on the name parm and it does show the correct card being
clicked on ----- but how to convert it so line xx accepts it is the
problem.
************************************************** *********
Dim sString As System.Text.StringBuilder
sString = New System.Text.StringBuilder
sString.Append("<script language='Javascript'>" & vbCrLf)
sString.Append("document.write(""<img class=setup")
sString.Append(r)
sString.Append(" src=../Solitary/images/")
sString.Append(abc)
sString.Append(" name=card")
sString.Append(r + u)
sString.Append(" id=card")
sString.Append(r + u)
sString.Append(" onclick=MakeInvisible(name)")
sString.Append(" runat = server")
sString.Append(">"");" & vbCrLf)
sString.Append("function MakeInvisible(name) {" & vbCrLf)
line xx sString.Append("(document.forms[0].name.style.visibility =
'hidden')" & vbCrLf)
}
sString.Append("</script>")
************************************************** *********
"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"barry" <fl******@ix.netcom.com> wrote in
news:ej**************@TK2MSFTNGP09.phx.gbl:
The problem Chris is that the sString.Append(name) gives an
error about not being declared
Barry,
What type is sString? Could you post more code that demonstrates the
problem?
Thanks.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/