. . to illustrate this point. Yeah, that??™s it, that??™s why!
??“wink-). As an aside (more so than this note in the first place!) is the origin of the term magic number. It
was originally found in some early Unix source code comments and has stuck ever since.
The magic numbers in the code here, by the way, are calculated with an advanced mathematical technique
known in academic circles as trial and error . . . I just adjusted them little by little until things looked
right in the browser. That??™s why they??™re magic numbers in the first place: there??™s no clear meaning by looking
at the code what they are or where they came from.
The hidePleaseWait() function is called when an operation completes, that is, when an
Ajax request returns. It does as it says: it hides the divPleaseWait
and displays the buttons
again.
The showView() function accepts the name of one of the view
s and shows it. Lastly,
the enableButtons() function accepts a Boolean value. When true, all the buttons on the top
and bottom are shown. When false, they are hidden.
Next up, going linearly through script.js, are all the functions that perform our Ajax. I
would like to skip them for now and finish off the non-Ajax functions that follow them.
Pages:
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291