[Seaside] Updating a text input with comet

John Toohey 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 :-

	
	self pusher javascript: [ :script |
		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:
>
> Seems to me you would be better off just evaluating some simple javascript
> 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.
>
> RS
>
>
> 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.
>
> Cheers,
> Nick Brown
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>



-- 
-JT


More information about the seaside mailing list