[Seaside] Re: Comet and #call:

Julian Fitzell jfitzell at gmail.com
Sat Aug 7 20:37:15 UTC 2010

On Fri, Aug 6, 2010 at 2:28 PM, TimM <tamackinnon at gmail.com> wrote:
> Then I have components that implement #ajaxReplace
> ajaxReplace: jQuery
>        ^(jQuery id: myId) replaceWith: [:r | r render: self].
> (Note: myId is an instance variable where I cache an "html nextId" as I figured
> the components should know their own id's. Haven't quite got that bit clean yet
> - I was trying to make it order independent, but I haven't always got the html
> object where I need it? I'm wondering if these components should just keep their
> own counter?).
> This seems much different from what Julian did:
> response
>     contentType: WAMimeType textHtml;
>     nextPutAll: (aComponent rendererClass builder render: aComponent) ]
> So I'm wondering what the merit of the different approaches is?

Probably no merit to mine at all - I just don't know the jQuery APIs
as well as I know the lower-level APIs... :)


More information about the seaside mailing list