473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

booking seats - refresh other user's browser window

Hi everyone!

I'm writing a booking system website,
which needs a seat selection algorithm,
my question is,
if a user clicks on a seat (temporarily booking that one),
how will the other users navigating on the same row of seats know that the
previous user has already booked a specific seat?

Perhaps a messaging system?
i.e. send a message to all users having their browser window open on the
same row to refresh their browser's window?

After doing a search, I stumbled across this url:

http://msdn.microsoft.com/newsgroups...=en-us&m=1&p=1

One can find many suggestions there,
but which one seems to suit me more?

Thanks in advance!
Jul 12 '07 #1
3 2060
On Jul 12, 6:04 am, patrickdrd <patrick...@discussions.microsoft.com>
wrote:
Hi everyone!

I'm writing a booking system website,
which needs a seat selection algorithm,
my question is,
if a user clicks on a seat (temporarily booking that one),
how will the other users navigating on the same row of seats know that the
previous user has already booked a specific seat?

Perhaps a messaging system?
i.e. send a message to all users having their browser window open on the
same row to refresh their browser's window?

After doing a search, I stumbled across this url:

http://msdn.microsoft.com/newsgroups...crosoft.public...

One can find many suggestions there,
but which one seems to suit me more?

Thanks in advance!
Hi...

you are talking about sending message from server to client ... right?
sorry friend... can't do it... what you can do is use ajax to pull the
status of your seats after a fixed interval...
and update the status of the seats...
so if a user booked a seat... you will update the status of the seat
in server or perhaps database...
then other user who are browsing the same site will receive the status
after some time... via ajax update... basically all the client browser
will pull the status of seats via ajax thanks...

if you are using desktop application this problem could be easyly
solved by using observer pattern ...
since you are in html and via http ... its hard to implement a system
like that...

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com

Jul 12 '07 #2
if you are using desktop application this problem could be easyly
solved by using observer pattern ...
since you are in html and via http ... its hard to implement a system
like that...
what do you mean "observer pattern"?
could you please provide me with more details?
maybe I should consider that possibility...
Jul 12 '07 #3
On Jul 12, 1:52 pm, patrickdrd <patrick...@discussions.microsoft.com>
wrote:
if you are using desktop application this problem could be easyly
solved by using observer pattern ...
since you are in html and via http ... its hard to implement a system
like that...

what do you mean "observer pattern"?
could you please provide me with more details?
maybe I should consider that possibility...
Hi...

Observer pattern is one of the design patterns....
here is a like...
http://www.dofactory.com/Patterns/PatternObserver.aspx
I did implement it in desktop application... but i am not sure whither
you can implement it in web application....

Thanks
Md. Masudur Rahman (Munna)
kaz Software Ltd.
www.kaz.com.bd
http://munnacs.110mb.com

Jul 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Jay | last post by:
I'm trying to refresh browser when some new information is available in DB. is there any way to force to refresh browser? Thanks. -Kev
14
by: Shiperton Henethe | last post by:
Hi Is there anyway to get a meta refresh to do so in an new browser window? e.g. This code forwards this user after 8 seconds... <meta http-equiv=refresh...
3
by: nicver | last post by:
I am working on updating a Web site with a frameset. A page opens a pop-up window in which the user uploads pictures. Once the upload is done, I would like to refresh the content of the frame which...
4
by: Mike | last post by:
On my web app I allow the user to enable or disable the refreshing of the page. I notcied that if the browser window is minimized the page does not refresh, or if it sits a long time without any...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
1
by: Gary | last post by:
Is it possible to refresh a browser window when a secondary browser window has been closed? For example, I have a main web form that functions purely as a datagrid, when a user clicks on a...
8
by: shannon | last post by:
Hi all, i am new to javascript and was wondering if anyone can help with this assignment? Any help will be great. Shannon A small airline has just purchased a computer for its new...
1
by: thehuby | last post by:
I am prototyping a ticket booking system and just wanted to ask a few questions. 1 - What is the standard way of temporarily reserving a number of tickets throughout the purchasing process (to...
35
by: Kaante | last post by:
Hi, i want a frame on my website to display one pic if the user has new messages and another different pic if it dsnt. Before i used html to auto refresh page every 10 secs. that was annoying...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.