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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server-side tcl help

Status
Not open for further replies.

mlowe9

Programmer
Apr 3, 2002
221
US
I'm using tcl as my server-side scripting language, and I'm having a problem with one particular line of code that I cannot figure out for the life of me. The line is:

Code:
puts "          <input type=button name=butn_DeleteRow value=D style=width:20px onclick=deleteRow(\"$inval($this_row)\");>"

The problem has got to be with the "deleteRow(\"$inval[$this_row)\"; part of the line, because if I take it out, the web page is fine. If I leave it in, it completely messes up my page. All the formatting is thrown off. I think it has to do with the quotes, but I've tried \" (as seen here) and \', and neither works.

I do not seem to be getting anywhere, so maybe some other eyes out in Tcl-land can help. Thanks!
 
How about that. I figured it out.

It had nothing to do witht he line, but with the value in the $inval array variable. There were equals signs in it, and apparantly that's a no-go for something.

I replaced the equals signs with another character (I picked ~ to be exact) and now it works. Thought anyone who read this might want to know.

Can I give myself a star? : )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top