classical geek

Archive for November, 2005

The trouble with with

Monday, November 21st, 2005

I’ve long been told that the with keyword in JavaScript is bad news, and long believed it. Today, I had a reminder of why that was.
I’m looking at a HTML form, that I want to parse programmatically rather than doing a straight submit. The parsing code that i’m modifying looks roughly like this:

var status=null;
with (document.myForm){
[…]

Crow-Eating Time

Monday, November 21st, 2005

There is an erroneous statement on p.599 of Ajax in Action. I’m discussing weird things that one can do with the JavaScript prototype, and incorrectly state that altering the prototype of an object after it is created won’t affect the properties of the already-created object. In fact, it will.
In any event, it’s a well-contained bug, […]

What Dave Did Next

Monday, November 14th, 2005

I’ve been fairly quiet on the blog for a couple of weks, as I get to grips with my new job, and start decompressing from writing the Ajax in Action book and consider what comes next.
The great thing about Ajax is that it’s such an old technology! Although the buzzword is new, people hve been […]

Mouse Trap

Monday, November 14th, 2005

Reader, I have tempted fate, and live to tell the sorry tale…
My previous post on Unintentional Programming was, you’ve probably guessed, a complete work of fiction, one of those attempts to trelieve the pressure of ideas in my head with a garbled outpouring. And yet here is a true story that makes it sound downright […]

Powered by WordPress, Supported by SaveOnRefinance.com