Re: Django Automatic Page Refreshing

2007-03-11 Thread James Bennett
On 3/11/07, 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

Re: Django Automatic Page Refreshing

2007-03-11 Thread sphogan
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, th

Re: Django Automatic Page Refreshing

2007-03-11 Thread baasbartels
Not Django related, but well ... there you go The short answer is: don't. The longer answer is: Your room only holds 200 people, so at some point someone will be out of luck. You just need to make sure that if someone starts a serious attempt to book a seat (as opposed to just browsing around),