<div>Hi!</div>
<div>&nbsp;</div>
<div>Its already a fully working example!</div>
<div>Now with the&nbsp;simplification suggested by Lukas!</div>
<div>&nbsp;</div>
<div><font face="courier new,monospace">renderContentOn: html<br>&nbsp;html heading: &#39;Callback Test&#39;.</font></div>
<div><font face="courier new,monospace">&nbsp;&nbsp;1 to: 100 do: [:idx | html anchor id: &#39;id_&#39;, idx asString;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class: &#39;showCell&#39;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;with: idx. html space.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;idx \\ 20 = 0 ifTrue: [html break]].<br>
&nbsp;html break.<br>&nbsp;html div id: &#39;result&#39;; with: [self renderResultOn: html].</font></div>
<div><font face="courier new,monospace"><br>&nbsp;self session addLoadScript: (html selector<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add: &#39;a.showCell&#39;;<br>&nbsp; &nbsp;&nbsp;&nbsp; do: [ :each | each element on: &#39;click&#39; do: (html evaluator callback: [:script | script element id: &#39;result&#39;; update: [:r | self renderResultOn: r]];<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;callback: [:v | self result: v] value: (SUStream new nextPutAll: &#39;this.id&#39;))]).</font><br></div>
<div>cheers</div>
<div>Gerhard<br></div>
<div class="gmail_quote">On Thu, May 1, 2008 at 6:39 PM, itsme213 &lt;<a href="mailto:itsme213@hotmail.com">itsme213@hotmail.com</a>&gt; wrote:<br>
<blockquote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid" class="gmail_quote">&quot;Gerhard Obermann&quot; &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote in message<br>

<div class="Ih2E3d"><br>&gt; BTW the test result shows a good performance gain without the 100<br>&gt; callbacks.<br>&gt;<br>&gt; Render Time (with 100 callbacks) : 29 ms<br>&gt; Render Time (with 1 callback) : 6 ms<br>&gt; File Size (with 100 callbacks): 20736<br>
&gt; File Size (with 1 callback): 8611<br><br></div>Wow, looks like I could do this in some places in my app. Any chance you<br>could share the rest of this test/sample code?<br><br>Always amazed by how much I do not know :)<br>
<br>- Sophie<br>
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>_______________________________________________<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>