Nate's Programming Blog

I discovered a new javascript technique recently thanks to James, this site and this site. It allows you to add and remove events without actually modifying the event function. The old way of doing this would be something like this: window.onload = function() { … }; This is not good, because if another class in […]

top

JSAN is another javascript library that I’ve just started using. It has several features, but the one I like the most so far is the ability to setup, essentially, classpaths and import other javascript objects without having to use script includes in the the actual html document. I’ll try to explain with an example. Let’s […]

top

Behaviour is a new javascript library that I’ve been using lately. It really compliments unobtrusive javascript. It allows you to define rules that map css style selectors to javascript functions. Here is an example of using a hyperlink class to define a common functionality for all links on a page that contain that class. window.onload […]

top

It’s one of the coolest new techniques I’ve learned. Hate having ugly javascript events in your html? Want to get rid of them entirely and also take advantage of caching all the javascript to a static file? Well now you can with unobtrusive javascript. Basically the idea is that you can use the onload event […]

top

Just wanted to let everyone know I discovered a bug with firefox/Mozilla/Netscape/Opera today. It seems that if you try to create a text node using javascript DOM that is over 4096 bytes, it will break the text node into multiple text nodes of 4096 bytes or less. If you want to reconstruct the text, you […]

top

Just found out the use of the target attribute in hyperlinks has been removed in xhtml 1.0 strict spec. I didn’t realize this and it isn’t an issue for my blog because it is only xhtml 1.0 transitional which I also just realized, but Allison’s blog uses the Blix theme which is xhtml 1.0 strict […]

top

I just wanted to let people know that a couple of new websites I contributed to are out on the internet. It is nice to finally be able to have work I’ve done viewable to the rest of the world. My blogs are great, but they will probably never really be real known, because I […]

top

I have wanted to change the look of my blog for a while now and couldn’t come up with any ideas. Well, I finally got around to deciding on a different look and I would like to know what everyone thinks. It isn’t a big change, but I think it makes the actual content easier […]

top

I just read a post on one of Jeffrey Zeldman’s blogs about a book he recommends. The name of the book is Stylin’ with CSS : A Designer’s Guide and it looks like a good CSS reference guide. This is mainly a reminder for me to go get this book, but I know some of […]

top

Well I’ve finished the html for the project I’m working on at Monsanto. I’ve been able to make it compliant with xhtml 1.1 strict and it is completely style driven. This of course wasn’t how I got the html. The html they gave me wasn’t even valid 4.01 Transitional and since I’m using xslt to […]

top