[Seaside] Re: Trying to get CTChat to behave like a normal chat app?

Lukas Renggli renggli at gmail.com
Tue Nov 17 06:52:19 UTC 2009


>> To come back to your question: Scrolling to the bottom of an element
>> is certainly possible with both libraries, Prototype and JQuery. I
>> don't know by heart, but Google knows many solutions. Just add you
>> preferred Javascript framework as an additional tag:
>>
>> http://www.google.com/search?q=scroll+bottom+element+javascript
>>
>> Lukas
> Just wanted to make sure I wasn't overlooking something already in Seaside?

What about something like that?

push: aString with: aBlock
	self pusher javascript: [ :script |
		script element id: 'messages'; insertBottom: [ :html |
			self renderMessage: aBlock class: aString on: html ].
		script element
			id: 'messages';
			access: 'scrollTop';
			assign: 16777216 ]

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list