On 10/6/06, Trevor Burton <[EMAIL PROTECTED]> wrote:
>
> in order for them both to received updates (each 'tick' of the clock) from
> the model they would 'register' with the model
>
> the model would hold a list of all it's observers and when a
> notifyObservers() method is called on the model it would send an update to
> all the views in it's list telling them about it's current state.

Ah, I understand now.  This is necessary for a statefull application
(like a desktop app) but won't work without jumping through a lot of
hoops in a stateless application like a web page.  Of course, you
could start talking about Comet but I think that's a topic for another
mailing list.

(Comet is the concept of "streaming AJAX" where you create long-lived
XmlHTTPRequest connections and push updates from the server to the
client)


-- 
Chris Hartjes

"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to