473,769 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2078
On Jul 12, 6:04 am, patrickdrd <patrick...@dis cussions.micros oft.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...@dis cussions.micros oft.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
36547
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
11264
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 content=8;url=http://www.auction-air.com/index.html> Is it possible to do so but in a new window, ideally one without focus - i.e. a "pop under" but only do so after a number of seconds...
3
10605
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 opened the pop-up but so far have failed. Here is my code: <% (ASP code which saves the photo in a database) %>
4
1850
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 user interaction(does not happen often) the page does not refresh. Is this a code issue or just how refresh works?
0
1683
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 another window, the web page quietly refreshes in the background. Hosted in Outlook, the refresh causes Outlook to come to the front on every refresh. Or in XP, causes the toolbar icon to flash.
1
1481
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 record in the datagrid a new window is opened (using the javascript window.open function), from this window the user can update or delete the record and then close the window once he/she is finished. Obviously when the record is deleted it will still...
8
4222
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 automated
1
5584
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 stop other people reserving those seats or whatever). 2 - What do you do to release these 'seats' if someone closes their browser? Is it just a cron job set for every 20 mins?
35
3423
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 for the user. as the user could notice the refresh and the images used to flicker. i found out that AJAX could perfrom the refresh for me better hence i tried using that. but the frame dsnt refresh automatically, but it does display correct info...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10212
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10047
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7410
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6674
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5304
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.