[Seaside] jQuery component rendering by interval

bobn at rogers.com bobn at rogers.com
Thu Nov 15 01:31:00 UTC 2012

I am not able to get what would seem to be simple jQuery refresh working. 
The code is supposed to render a component every five seconds. 
I can see the render code being triggered, but the browser display is not being updated.

My code looks something like this... 

html script: (
(html jQuery ajax script: [:s | 
s << (s jQuery html: [:r | r render: self selectedComponent])]
) interval: 5 seconds)

...I do a similar thing in another application using Scriptaculous, which works fine... 

html div 
script: (
html scriptaculous updater
interval: 5 seconds;
on: #renderSelectedComponentOn: 
of: self);
with: [ self renderSelectedComponentOn: html ]

I've been searching through the archives, but all the hits I find make me think the jQuery code is OK.
I imagine I'm missing something obvious... so thanks for any help.

Bob Nemec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20121114/1a2eb91d/attachment.htm

More information about the seaside mailing list