[Seaside] Problems with my dishwasher.. I mean.. Comet

Robert Sirois watchlala at hotmail.com
Thu Apr 1 18:12:43 UTC 2010


I'm developing an app utilizing Comet quite extensively (coupled with Ajax).

I have gotten what I want to work and all at a basic level, but I do have a couple questions since I'm not at all familiar with the technology.

The first is, how do the pushers work? I tried throwing references to one around to just one, but I think it actually needs to be rendered to the page (load script) as per the example.

And the last one for now ;) is how can I restrict relevent data to the sessions that "care" about it? If a client pushes some javascript, but only a few other clients need that javascript, I would prefer to only give that script to those clients, or am I thinking on the wrong lines here?
Should I do something more along the lines of the CTCounter example where, when something in the data structure changes, then the clients can choose to do something about it?

Thanks!
RS

From: dtrussardi at tiscali.it
Date: Sat, 20 Mar 2010 12:48:53 +0100
To: seaside at lists.squeakfoundation.org
CC: dario.trussardi at tiscali.it
Subject: [Seaside] Re: SUComponent script: question



Hi Lukas,in the attachment you find the class TestScript.You can open it directly from seaside browser page link.After with the browser inspector, you can explore the 'officeLayer' data.You found :[Objectplaces: Arrayzoom: Array0: 01: 3, Object]
Now add at SUAlTests initialize the new link:	initialize
	super initialize.
	tabs := OrderedCollection new
		add: 'Welcome' -> (Array
			with: 'Welcome' -> SUWelcomeTest new
			with: 'Counter' -> SUCounterTest new);
		add: 'Ajax' -> (Array
			with: 'Updater' -> SUUpdaterTest new
			with: 'Periodical' -> SUPeriodicalTest new
			with: 'Evaluator' -> SUEvaluatorTest new);
		
			with: 'Morph' -> SUMorphTest new);	..........	.........	.........
		add: 'testDTR' -> (Array 
			with: 'test' -> TestScript new );
 		yourself.
	selected := tabs first valueWhen you open the new scriptaculous entry and inspector the 'officeLayer' data, you find some other data:Objectplaces: Arrayzoom: Array0: 01: 3_each: function forEach() {_reverse: function reverse() {all: function (C, B) {C=C?C.bind(B):Prototype.K;var A=true;this.each(function(E,D){A=A&&!!C(E,D);if(!A){throw $break}});return A;}any: function (C, B) {C=C?C.bind(B):Prototype.K;var A=false;this.each(function(E,D){if(A=!!C(E,D)){throw $break}});return A;}clear
And it's the problem.
Thanks,
	Dario

 		 	   		  
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100401/1893cf82/attachment.htm


More information about the seaside mailing list