Workstyle: Add vendor tests before using new library code

Hello again. Here is a snag-resolving article about a maintenance problem. There should be a thick volume called “Web Maintenance Pearls”, which everyone should be forced to read. Here’s the situation: You want to throw out a dependency. It’s an older JavaScript library, and you have a replacement lined up. Some plugin for a popular …

Change ID of a Component in ExtJS

ExtJS: The Component manager instance’s all collection does not let you change an ID of a component. Let’s say… you wanted to, anyway. Add this: Ext.ComponentMgr.all.changeKey = function(oldkey, newkey) { var comp = this.map[oldkey]; var index = this.indexOfKey(oldkey); this.keys[index] = newkey; this.map[newkey] = comp; delete this.map[oldkey]; }; Is there anything really wrong with this approach?

7th Öresund JavaScript Meetup (and the next)

So that was the 7th meetup about JavaScript. We learnt stuff about extending Chrome, that WebKit browser. Mark Wubben taught us. Thanks, Mark! You provided much more than a glorified walkthrough of the extant documentation, you gave us insight into how the workflow feels, and how a finished product can look. That went well. When …

Superfish, activated on click

Update: Fixed link to patch. Thank you, helpful commenters! You fix the Web! Or, onclick, as people say. (This is Google fodder, so I include alternative spellings of clicking – there I go a third time.) I just want you to know that this one person released a great fix, a patch really, for Superfish. …

Crosscheck wheel spin

At the last meeting with Copenhagen.rb, I said I’d test out Crosscheck – a JavaScript testing framework, suited for continuous integration or command-line testing. I had just tried getting it to run, following the slightly outdated Add Event tutorial. At last I got it to work, but I had to actually read the text, not …

LiveHTTPHeaders Firefox extension alive again

For those of you who did not get the memo: the excellent LiveHTTPHeaders Firefox extension is up and running again, on Firefox 1.5. It is an extension that monitors what goes in and out of your browser. Helpful, helpful. Mr Savard, maker of the thing, says on the site “I hope this will be useful …

Your comments, followed: using coComment

Now, this blog is using [coComment](http://cocomment.com), to make my blog comments elsewhere visible to you folks, complete with their own RSS feed. (Service is free, simple, etc etc.) Privacy? I missed the JP Rangaswami presentation at Reboot, but it seemed like one the interesting ones (just test it with the surname litmus test: 10/10 – …

Javascript ate my hamster: Go get Yahoo Event Utility and Firebug

Dustin Diaz tells about Yahoo Event Utility which is the addEvent killer of all time. If you do serious Javascripting these days, please, do yourself a favour, and read that piece. Slowly. You might find drool on your chin afterwards. Then, go get the Event Utility. You owe to yourself. You deserve it. And, be …

Validation hint for Javascript with markup in it

Validation time. (For clients!) Get the stuff valid, so the work with CSS is less guess and more science. So, one begins by removing all the errors that have to do with missing slashes, lost ALT attributes, and soon the errors are fewer. I had trouble with a piece of Javascript that wrote the markup …

More useful JS: Prototype revisited

OK, for those of you watching from the sidelines, remember when we talked about the Prototype framework, and I said it could be done slicker? I am now correcting those little errors. First of all, I was not using enough parts of Prototype, and so I was doing unnecessary stuff, and also, I was leaving …