473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating buttons which disappear after submitting

1 New Member
Hi! I want to make a simple website (for college project) which will let patients choose their time of appointment. I have trouble making buttons (with time written on them) which will disappear after patient clicks "submit".
All patients are logged in with unique usernames and passwords so when they click submit and someone else logs in to choose their time, they won't see any of the buttons that are submitted before.
If you have a link that can help me solve this, please post it or send me a part of code which makes buttons disappear after clicking submit button so no one else can see it.
I'm a JS beginner so I find this a bit confusing. Thank you!
Aug 26 '19 #1
1 1223
gits
5,390 Recognized Expert Moderator Expert
to make a html-element disappear you can either use css or remove the element from the DOM at all. what did you have tried so far?

another question is - how is the submit exactly done - because you probably only want to remove the nodes when the time was booked correctly? and another thing is that for example 2 users logged in simultaneously - 1st one books a time and how would the 2nd one be notified about that? Without something like websockets or such you couldn't broadcast the information to other clients in realtime - so the 2nd user would submit and would receive a message that he was to late here and need to chose another time - so after the submit the request should return with all booked and free times - so the UI can adapt to it.
Aug 26 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sho_nuff | last post by:
Hello all, I have a toolbar that has about 8 buttons. When i shrink the size of hte window, the buttons vanish based on where separators are located. Ideally, i'd like to have a button come up...
15
by: Paul Mars | last post by:
I am creating a user selectable quantity of buttons at run time and need to respond to their click events. My code: Dim btnButton as Button (global) Then in a sub: For intNumBtnsDown = 0...
3
by: Michael Dawson | last post by:
I am creating a list of items which need to be clickable on a web page, but I am unfamiliar with ASP event handling. I created the following test control: public class MyCustomControl :...
4
by: Ron | last post by:
I want to create 10 buttons on a form at runtime, the code below is only creating one button labeled 1. Any idea what I am doing wrong? Public Class Form1 Public code(10) As String Public...
5
by: gomzi | last post by:
Hi, I would like to know whether there are any sites which can be used for creating buttons? Thanks, Gomzi.
4
Maril
by: Maril | last post by:
Hi I'm a beginner in Flash and I was wondering if it's possible, for example : if you have 4 buttons on a page, that when the mouse is over one button, that the others disappear(fade out) and...
2
by: chupcha | last post by:
Hello all, I'm very new to java script and I need help. I have a couple of buttons on a page that I need to disappear when one of the buttons is clicked. What I found is this: ...
0
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,...
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,...
1
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...
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...
1
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...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
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...

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.