Ok, <br><br>>html anchor<br>> onClick: (html updater<br>> id: 'someid';<br>> callback: [ :r |<br>> body := aComponent.<br>> self renderBodyOn: r ];<br>> with: 'menu 1'.
<br><br>r is renderer, but its renderer of html updater or i must write here html renderer when i call this part of code in:<br><br>anotherComponent >> renderConententOn: html<br> html anchor<br> onClick: (html updater
<br> id: 'someid';<br> callback: [ :r |<br> body := aComponent.<br> self renderBodyOn: r ];<br> with: 'menu 1'.<br><br>or r is right in this small example?<br><br><br><div>
<span class="gmail_quote">2007/12/30, Lukas Renggli <<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> I want do this in root component render left menu head and bottom and<br>> content area. And i want change content with ajax. Sometimes shows new,<br>> sometimes users account info etc. i look on scriptacolous website but i dont
<br>> find any demo to do this. May be it's problem i dont know whati want to find<br>> because i think there will be now script to call site skript.php from<br>> index.php :). But can anybody show me best way to do what i want?
<br><br>Have a look at the senders of #updater.<br><br>You pass it the id of the div that you want to change its contents and<br>a callback block that renders the contents of that particular div<br>element. Something like:
<br><br>html anchor<br> onClick: (html updater<br> id: 'someid';<br> callback: [ :r |<br> body := aComponent.<br> self renderBodyOn: r ];<br> with: 'menu 1'.<br>html div
<br> id: 'someid';<br> with: [ self renderBodyOn: html ]<br><br>Lukas<br><br>--<br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</a><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">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br></blockquote></div><br>