Practical JS Projects
2 comments | Posted: 4 September 07 in Books, by Nathan Smith
As might be expected, the scrpting logic is solid throughout, with Zammetti hailing from a programming background. He even diagrams all his examples in UML for ease of comprehension. I did feel that some of the inline event handling could have been done away with. I could understand his reasoning for an occasional inline function call, but things like
onmouseover don’t really belong embedded in HTML anymore. The code on page 201 also worried me a bit.
<div id="divInitializing" class="cssInitializing"> <br><br><br><br><br><br><br><br><br><br> <center>...Initializing Contact Manager, please wait...</center> </div>
Instead of using multiple line-breaks, he could/should have done something like CSS Vertical Centering. Anyway, it’s not a huge deal, but experience tells me that people are more apt to take a demo and run with it, rather than figure out the proper solution on their own. What might be intended as a proof-of-concept could haphazardly find its way into the wild as code used in production.
Discuss This Topic
Comments closed after 2 weeks.