[Seaside] jQuery component rendering by interval
jtuchel at objektfabrik.de
Thu Nov 15 04:31:32 UTC 2012
I guess you should add to the script a jquery expression that causes some component to be replaced with the contents of the rendering. So either this part is missing in your snippet or it`s really missing. The ajax call is made to re server, but you dont use the results.
Look at senders of load or replace....
bobn at rogers.com schrieb:
>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 scriptaculous updater
>interval: 5 seconds;
>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.
>seaside mailing list
>seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside