tags:

views:

823

answers:

1

can't seem to get the syntax right in order to pass the AttID variable. This line of code is in a for loop so I have to print using vbs response.write and not just straignt html.

Response.Write "<TD class=alt><input type=button onclick=deleteRecordAtt(AttID) value=remove></TD></TR>"
+3  A: 

I haven't done VBScript in 8+ years, but you might want to try:

Response.Write "<td class=""alt""><input type=""button"" onclick=""deleteRecordAtt(AttID) value=""remove"" /></td>"

This would give you the more accepted html attribute quoting.

Also, your AttID variable is a client script variable? If not, you'd need to concat the server variable inline, e.g.

...onclick=""deleteRecordAtt(" & AttID & ")""...
Jarrod Dixon
IT WORKED!!! THANKS!!!
MG
MG