[Seaside] Updating a text input with comet
johnptoohey at gmail.com
Thu Apr 29 18:26:44 UTC 2010
If you really do need Comet, and are aware that all browsers will get
updated then you need something like this :-
script << ((script jQuery: id; text: aValue) effect pulsate times:1.
On Thu, Apr 29, 2010 at 14:00, Nick Brown <nickbrown at fastmail.fm> wrote:
> On 29/04/2010 18:24, Robert Sirois wrote:
> for this. Comet is used to send information to users connected to the same
> pusher.. whereas this looks like a private sort of thing.
> Look at jQuery ajax stuff for this... like (I'm typing this from memory):
> html textInput
> on: #blah of: self;
> onChange: html jQuery ajax serializeThis;
> onBlur/Change: (html jQuery ajax script: [:s | s add: (html jQuery this
> attributeAt: #value put: self #blahFormatted)].
> I seriously doubt that code would run... but you get the idea lol.
> Thanks Robert. I haven't in fact looked into the jQuery integration with
> Seaside much, because I haven't moved over to 3.0 yet, but that code will no
> doubt come in handy.
> I realize that in describing my problem, I've given a deliberately trivial
> example to the point that it doesn't convey why I'm trying to use comet, but
> I am indeed interested in using it to push strings into text input fields
> for multiple users, so my question still stands.
> Nick Brown
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside