Snippets
These are code fragments that you can cut-and-paste into your own scripts. They are designed to stand alone and don't require any of the monolithic libraries floating around. Some may depend on others but we promise the dependency chain won't be too long.
Current page is 5: Snippets
- 5.1: bind() - bind a function to context and arguments
- 5.2: addEvent() - add an event to an element cross-browser
- 5.3: pave() -- Set a property at arbitrary depth, creating parents as necessary
- 5.4: addLinks()
- 5.5: obj2query()
- 5.6: CGI
- 5.7: form2obj()
- 5.8: getElementsByClassName()
- 5.9: Class Manipulation
- 5.10: Cookies
- 5.11: xml