/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to Code Viewer Alt/AJAX/AjaxDemoApp7_makeBookingsTimer_description.html

  • Committer: elof.bigestans at gmail
  • Date: 2013-04-04 09:29:10 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: elof.bigestans@gmail.com-20130404092910-2h88nt2vtjfabq27
* Added description files for code examples. These were removed on a previous clean-up job, when they shouldn't have been.
* Modified php files to reflect new description files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<span class="description">
 
2
<br>
 
3
<div class="descriptionheading">Overview</div>
 
4
 
 
5
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.
 
6
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.
 
7
 
 
8
<br><br>
 
9
 
 
10
<div class="descriptionheading">drawResult</div>
 
11
The function called <span class="interestingdescription">drawResult</span> is changed so that there is coloring depending on booking status and functionality for
 
12
making highlight bookings when the mouse is hovering over a booking slot.
 
13
 
 
14
<br><br>
 
15
 
 
16
<div class="descriptionheading">bookPosition</div>
 
17
The function called <span class="interestingdescription">bookPosition</span> is changed so that it can use a booking status variable.
 
18
 
 
19
<br><br>
 
20
 
 
21
<div class="descriptionheading">refreshBookingList</div>
 
22
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
 
23
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.
 
24
<br><br>
 
25
                                                                                                                                        
 
26
</span></pre>
 
27