1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<span class="description">
<br>
<div class="descriptionheading">Overview</div>
To make bookings more interactive, a timer can be used to refresh the bookings list while the user is making bookings and moving his mouse.
This requires changes mainly in the function that draws the table and timers need to be added to the code so that the redrawing function is called periodically.
<br><br>
<div class="descriptionheading">drawResult</div>
The function called <span class="interestingdescription">drawResult</span> is changed so that there is coloring depending on booking status and functionality for
making highlight bookings when the mouse is hovering over a booking slot.
<br><br>
<div class="descriptionheading">bookPosition</div>
The function called <span class="interestingdescription">bookPosition</span> is changed so that it can use a booking status variable.
<br><br>
<div class="descriptionheading">refreshBookingList</div>
The <span class="interestingdescription">refreshBookingList</span> function is called by the timer. The main difference is that the resource and bookingdate variables are global variables
updated by the <span class="interestingdescription">processinputbox</span> function. The processinputbox function does not call the <span class="interestingdescription">refreshBookingList</span> function directly, but relies on the timers to call the function.
<br><br>
</span></pre>
|