Appendix B. Utility Functions: Just Gimme the Code
Sometimes you just want everything in one place.
You’ve spent a lot of time using utils.js, our little utility class of Ajax, DOM, and event utility functions. Inside these pages, you’ll get all those functions in one place, ready to put into your own utility scripts and applications. Take one last chance to familiarize yourself with these functions, and then get to work on your own utilities!
utils.js: a work in progress
Here’s the code we’ve got so far for utils.js. But why stop here? You should add your own functions into utils.js. Need a handy reusable function for getting the text out of a node? Put that function in utils.js.
Over time, utils.js should become your own personal framework.