I use Seaside (2.8 in Squeak 4.2) and usually update as follows:
html div
onClick: ((html jQuery: '#asdf') load html: [:h|h text: 'qwer'])
; with: 'asdf'.
But this time I need to update the div periodically .
I used PT periodicalEvaluatorin another project, however in this I can not, I have to stick to JQ.
I tried using JQInstance delay:millisin all combinations that I could think of:
onClick: (((html jQuery id: 'chattertext') delay: 1000; yourself) load html: [:h| self renderTextOn: h])
; onClick: (((html jQuery id: 'chattertext') delay: 1000) load html: [:h| self renderTextOn: h])
; onClick: (((html jQuery id: 'chattertext') delay: 1000; load) html: [:h| self renderTextOn: h])
and others
for some reason, the update happens instantly, and not after the 1000 milliseconds I need .
source
share