There are two ways of doing this: 1) You can use a meta refresh so that every, say, 30 seconds, the page reloads itself.
2) You can use Ajax to lookup if someone has registered every 30 seconds and then update the display based on the new data (or not if there is no new data). Unfortunately, there is no way to have it be instant. For example, 1 person signs up and then the server pushes an update to everyone on the site. This is because HTTP is stateless. The server has no idea whether anyone using the system is still using the system. When you visit a site, your browser says to the server "hi! i want this page" and the server says "cool, here it is!" and then there is no communication between them until you request something new. The server has no idea whether you're staring at the screen, whether you've closed the window, whether you've shut down your computer, etc. As such, the server can't know who's still there to push data to. Suffice it to say, your best option would probably be to use Ajax to send a request to the server and then update the data from the response, but you will have to do it timed - you could pick every 5 minutes or 5 seconds, but do realise that your server and the person's browser has to be sending and processing data when these requests happen. Good Luck! On Mar 11, 9:12 am, "johnny" <[EMAIL PROTECTED]> wrote: > I have an online seminar booking application. What I want to know is, > if 100 people are currently > viewing a room that holds max 200 people, and one person out of 100 > books the seat in the room, how do > I refresh all the 100 pages so that they all have an updated version? > > Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---