[Seaside] Trying to get CTChat to behave like a normal chat app?
john.chludzinski at gmail.com
Mon Nov 16 22:17:04 UTC 2009
I'm trying to get CTChat to behave like a normal chat app by getting its
#textArea (or my case a #div) to scroll automatically to the bottom when a
new message is added. But because I'm using SUTreeReport which relies on
Prototype/Scriptaculous and since JQuery and Prototype/Scriptaculous won't
work together, I need need a solution using the older:
insertBottom: [ :html | self renderMessage: aBlock class: aString
on: html ]].
and well as with the newer (when I'm not using SUTreeReport):
script << (script jQuery: #messages)
prepend: [ :html | self renderMessage: aBlock class: aString on:
I've tried adding PTElement>>scroll to the message cascade for "script
element" to no avail. I've also tried to see if there's something doable
I assume this isn't trivial since it wasn't done originally?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside