Hi!
 
I recently decided to change all my coding from dtml to page templates, but I now have a problem i cant solve.
I need to change the javascript on html script blocks. A quick example in DTML of what i want to do and that works perfectly:
 
<HTML>
<HEAD>
<TITLE>Chat</TITLE>
<SCRIPT type="text/javascript">
 function connect()
 {
  username = <dtml-var "USER_NAME">;
  password = <dtml-var "USER_NAME">;
  server = <dtml-var "USER_NAME">;
  port = <dtml-var "USER_NAME">;
  subRoomID = <dtml-var "USER_NAME">;
  groupID = <dtml-var "USER_NAME">;
 
   WBChat.Connect2(server,port,subRoomID,username,password,groupID);
 }
</SCRIPT>
 
</HEAD>
 
<BODY>
<!-- BODY HERE -->
</BODY>
</HTML>
 
Someone can help me on how to di this with ZPT??
 
Thanks in advance,
 
Pedro Costa