Object.prototype is verboten

It is not seldom that you see people messing with Object.prototype. This is very bad because it breaks the object-as-hash-tables feature in javascript. Basically, the following is a very common scenario: var obj = {a: "A", b: "B", c: "C", d: "D"}; for (var key in obj) { doSomething(key, obj[key], obj); } if ("b" in ...

Array Extras

With the upcoming Firefox 1.1 release (and other browsers based on Gecko 1.8) things are starting to move in javascript land. During the early years of javascript a lot happend but then came the ambitious plans ofJS2 and the improvements to js just kind of died away for no reason. It seems Mozilla is finally ...

Visual C# Express Sucks

Visual C# Express 2005 Express Edition Beta 2 is actually a quite nice IDE for developing C# applications. It has a lot of features that make navigating and figuring out the framework a breeze. The reason I think it sucks is the following: I had developed an application for a few hours and to be ...

The List

Emil reminded me of Joel Spolsky’s list of things that cannot be well done in a web application Create a fast drawing program Build a real-time spell checker with wavy red underlines Warn users that they are going to lose their work if they hit the close box of the browser Update a small part ...

Client Side Real Time Spell Checker

I knew Emil was playing around with a real time spell checker written in DHTML and it got me very excited. This is probably a big milestone in our field and now that he let the cat out of the box I cannot express my amazement over the talents that this guy has. See the ...

JS, Encoding and XMLHttpRequest

I run into a quite strange issue today. Basically the problem was that a javascript file was encoded using ISO-8859-1 and contained some weird characters. It worked fine in a plain HTML script tag that included the external file. However it did not work when the file was loaded using an XMLHttpRequest (MSXML has exactly ...

Errors and AJAX

XML.com has an article called Errors and AJAX where they suggest that client side errors should be reported back to the server for logging. This sounds a bit familiar to me. Me and Emil did the same thing back in 1999. I guess it all comes back around sooner or later.

Ecma Script Template Engine

Lately, I’ve been feeling quite creative. I guess I can thank World of Warcraft for that. Or actually the other way around. I got out of my addiction after a week in USA and I decided that I would not touch it again. Lately I’ve been looking at simpler ways to output data received from ...

Copy Cat

I really liked what Forgetfoo did with his Comment Notifier and I was planning to get mine out before he wrote about it but our server was down yesterday due to maintainance. So, I had to wait with the server side implementation until tonight. My solution tries to mimic the popup notifier that MSN Messenger ...

The Musical Baton

This one has gone around the blogs over the last couple of days and since Dean Edwards passed it to me I’m passing this on. Total Volume 18.4 GB – And a lot more on CD Last CD Bought The Beautiful Struggle by Talib Kweli I bought this one in a main stream record store ...