Name: Anonymous 2013-07-23 21:28
Hey Prog, I'm trying to create a real time appointment setting webapp.
I have it so users can check box several people of interest that they want to have appointments with. It pops a [select time] and when clicked does an ajax call for current available time slots.(to have the most recent list)
When you select a timeslot, it does another ajax call to query the Database with php to update the info
I want to avoid the annoying message if two users are accessing around the same time.
Should I just keep it how it is or what would you recommend doing?
I have it so users can check box several people of interest that they want to have appointments with. It pops a [select time] and when clicked does an ajax call for current available time slots.(to have the most recent list)
When you select a timeslot, it does another ajax call to query the Database with php to update the info
//pseudo code example
if ( slot is not taken){
update DB with slot taken with said person
}
else
return "sorry slot is taken please try another slot"I want to avoid the annoying message if two users are accessing around the same time.
Should I just keep it how it is or what would you recommend doing?