On Tue, Nov 10, 2009 at 10:03 AM, elminio <wgruszczyn...@gmail.com> wrote:
> What I want to achieve is sort of popup which will appear on the first
> user screan informing him that record created by him was changed.
>
> The logic described above is just a sample. What I need is to know how
> to pass some information to logged user and show it in popup or sth
> similar.

this is the textbook example for a Comet approach.  But for simple
notifications it's easy do to with straight AJAX.  just add a Django
view that returns (possibly as a JSON structure) any notification(s)
to a given user, then set a simple JavaScript function to be called
every 10sec or so, and check if there's any notification by simply
calling that view.  i think it would be around 3 lines with jQuery.

> For example in Gmail when someone starts chatting to you there is a
> small popup in the bottom corner.

maybe not the embedded chat, (that is better handled with a full Comet
architecture); but the 'more messages available' notification.  in
this case, the query is not about messages for a user, rather it's
more like 'messages about this context', where the context in Gmail
case is the displayed thread.


-- 
Javier

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to