No, you can do this.  But you need to use \" for the quotes
inside a quoted string (like name=\"newEmp\") and if you
have dollar signs or braces inside the quotes and don't mean
to eval TCL variables or call TCL functions, you need to
backslash them too.

Also, a square function brace starts a new level of quotes, so:

   set xyz "Hi [callme "Jim W" "Fred X"] there"

is legal without the backslashes, but:

   set xyz "Hi [callme "Jim \"said\" this" "Fred X"] there"

would be needed to pass 2 arguments to callme:
arg1:   Jim "said" this
arg2:   Fred X

Jim

>
> hello!
> Is there anything wrong , if i wish to use javascript
> in my TCL file like
> described below.If i want to use all the client side
> validation in this manner
> ,can i do?
> thanx
>
> set return1 "<FORM name="newEmp" method="post"
> action="">"
> append return1 "<INPUT type='hidden' name='EMP_ID'
> value=$empId>
>                               <SCRIPT>
>                               function submitEmp() {
>
> document.newEmp.submit()
>                               }
>                               </SCRIPT>
>                               </FORM>"
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
>

Reply via email to