Localizing the CNET JS code

The CNET JS code includes references to various assets - images and a few css files and at least one flash (swf) file. I include references in the javascript so that these things “just work” when you use them.

First and foremost, our libraries are designed for us to develop with, and making that process easy is our main concern. The problem is when you want to use these scripts somewhere other than CNET (or for local development).

Well, now you can. Just download the assets here:

http://code.google.com/p/cnetjavascript/downloads/list

Then use http://cnetjavascript.googlecode.com/svn/trunk/setAssetHref.js to set the location of the assets. Voila.

Leave a Reply

You must be logged in to post a comment.