Hi

>     If I can use JavaScript, How Use it ?
>     Can I get a example ?

Websh is a server side framework. JavaScript runs on the client ->
writing JavaScript is no different than in any other HTML page. 
The only point to consider is, that when using templates, Websh is
initially configured to expect Tcl code in curly brackets "{" and "}",
so you either have to escape tem with "\" if you want JavaScript in
your template or you reconfigure Websh to use "<?" and "?>" as code
delimiter.

Websh:

 web::puts {<script>
 function foo() {
   var i; 
   // do other stuff in JavaScript
 }
 </script>}

Regular template:

 <script>
 function foo() \{
   var i; 
   // do other stuff in JavaScript
   {web::put $someJavaScriptCode}
 \}
 </script>
 
Or, with [web::config putxmarkup tag]

 <script>
 function foo() {
   var i; 
   // do other stuff in JavaScript
   <?web::put $someJavaScriptCode?>
 }
 </script>
  
hth
Ronnie
--
Ronnie Brunner | [EMAIL PROTECTED]
phone +41 (0)44 247 79 79 | fax +41 (0)44 247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to