Google JavaScript Libraries

Today’s minor piece of news: we are now using Prototype and Script.aculo.us hosted by Google AJAX Libraries API. What does this mean? To most of you, nothing whatsoever. Everything should just continue working as before. It may be a little bit faster, since i hear Google have some pretty nifty web servers!

The other good reason for this is that many sites are now using AJAX libraries, and it’s really rather silly for every website to provide their own, making you download the same old stuff time and time again. The more sites start using Google’s version, the better. I encourage other web developers to do the same thing. It’s really very easy, and when it comes to upgrading to a new version, you just have to change a number!

<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load("prototype", "1.6.0.3");
  google.load("scriptaculous", "1.8.1");
</script>

Yep, it really is that easy! :)

I also figured out a fix to the in-place-editing of task names. Sorry to those people who found that the pop up menus were not working after the last upgrade. It was due to Script.aculo.us quietly changing the onlyExternalControl command to externalControlOnly.

If you find anything problematic about these changes, please let me know!

Leave a Reply