====== CNET Libraries ====== 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. ===== MooTools ===== The foundation code of our library is the excellent [[http://mootools.net|MooTools]] framework, to which we contribute (I - Aaron Newton - wrote the original docs, for example). It's included in our library on all our pages. ===== Updated CNET Libraries ===== Version 1.2 of MooTools is finally released. Many of our MooTools extensions have been added to MooTools, so we've removed them from our libraries or, in some cases, refactored them. If you were using our libraries or a portion of them already, you'll want to [[http://clientside.cnet.com/js|download them again]]. ===== Dependencies ===== 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 [[06-popupdetail|PopupDetail]] class depends on our [[08-stickywin|StickyWin]] class which depends on [[04-element.position|Element.Position.js]] and [[02-iframeshim|IframeShim.js]]. The point here being that to use many of our libraries requires that you include others. To this end, we've mapped all the dependencies in the //scripts.json// file found in the svn respository (in the //Source// directory). Our [[http://clientside.cnet.com/js|download page]] manages all this for you and optionally allows you to include the required dependencies from MooTools 1.2 if you haven't already downloaded them. ===== Using our code ===== 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, [[http://code.google.com/p/cnetjavascript/issues/list|let us know about it!]]. ===== License ===== Copyright (c) 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.