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