At CNET.com we've been working to create a set of javascript classes and functions that will be available to all our pages. Some of these classes are unique to our network and I won't document them here. Others though are things that could be reused elsewhere, and you'll find them detailed in this section of the wiki. I'm adding these as I have time, so check back often.
The foundation code of our library is the excellent Mootools framework, to which we contribute (I - Aaron Newton - wrote the docs, for example). It's included in our library on all our pages.
Version 1.2 of MooTools will be released shortly (as of today, 4/28/08). If you were using our libraries or a portion of them already, you'll want to download the MooTools 1.2 version of them now. The old MooTools 1.11 code is still available in our svn repository.
Our code currently runs on MooTools 1.2, which is due out very soon (as of 04/28/2008). You can download MooTools from MooTools.net or you can download it with our libraries from our download page.
The whole point of writing libraries and functions and classes is to reuse code, and we do that a lot. Consequently, almost all of the libraries here depend on other libraries within our collection. So, for instance, our PopupDetail class depends on our StickyWin class which itself depends on other scripts.
The point here being that to use many of our libraries requires that you include others. We've tried to follow Mootools lead in making things modular so you can choose just what you want to include. Use our new download page to get what you need and it will take care of the dependencies for you.
The content provided here is open source, so you are welcome to do with it as you please. It was written specifically for our network and it comes with no guarantees. If you find a bug, let us know about it!.
Copyright © 2006 CNET Networks, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.