Hi Phil,<div><br></div><div>Looks like you are creating a tree component? which JS library do you use for that? I already implemented JSTree so maybe we can join forces?</div><div><br></div><div>Regards,</div><div><br></div>
<div>Bart</div><div><br><div class="gmail_quote">2010/11/20 Lukas Renggli <span dir="ltr">&lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; To create the following function:<br>
&gt;<br>
&gt; function(node) {<br>
&gt;        if (node.leaf) {<br>
&gt;                node.onClick(<a href="http://node.id" target="_blank">node.id</a>);<br>
&gt;                {$.ajax({&quot;url&quot;:&quot;/CQNowS&quot;,&quot;data&quot;:[&quot;_s=VPFmqrxxYQGh1ycn&quot;,&quot;_k=wjnMpQBbQbIebYiP&quot;,&quot;2&quot;,&quot;3=&quot;+<a href="http://node.id" target="_blank">node.id</a>].join(&quot;&amp;&quot;)})}<br>

&gt;        }<br>
&gt; }<br>
<br>
</div>The point of the Javascript support classes *is not* to create<br>
complicated code like this (although it can be done). The idea is<br>
compose and configure different existing parts with each other. In<br>
your case I suggest that you put your Javascript functionality into an<br>
external Javascript file, create your own Seaside wrapper and call it<br>
from Smalltalk.<br>
<div class="im"><br>
&gt; function(node){if(&quot;node.leaf&quot;){node.onClick(&quot;<a href="http://node.id" target="_blank">node.id</a>&quot;)}}<br>
&gt;<br>
&gt; How do I make the &quot;node.leaf&quot; and &quot;<a href="http://node.id" target="_blank">node.id</a>&quot; into references rather than strings?<br>
<br>
</div>JSStream on: &#39;<a href="http://node.id" target="_blank">node.id</a>&#39;<br>
<br>
Lukas<br>
<font color="#888888"><br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>