[Zope] dynamically passing the id to a javascript function

Sven Hohage hohage@muenster.de
Sun, 19 Aug 2001 18:40:05 +0200


Hello,
I think this isn't that difficult but after 2 hours I get frustrated!!
That's the script:

The javascript.function--->>>>

  <script language=JavaScript>
 <!--
    function TwoFrames(page)
   {
    parent.frames[3].location.href = page;
    parent.frames[4].location.href = 'fix.html';
   }
  //-->
  </script>

and the links --->>>

<table border="0">
<dtml-in "objectValues('BasicPage')" sort=sorter>
<tr>
<td align='left'><a class='c' href="javascript:TwoFrames(<dtml-var
id>)"><dtml-var title></a></td>
</tr>
</dtml-in>
</table>
Instead of passing the id to the Javascript-function as a string the
Javascript-Interpreter tries
to evaluate a variable (the id is undefined).I thought that the id is a
string?? How do I solve this problem??