movable tabber
Wednesday, August 15th, 2007Cool, the folks over at Movable Type (blogging software) are using my JavaScript tabs script. They even came up with a nice enhancement.
Cool, the folks over at Movable Type (blogging software) are using my JavaScript tabs script. They even came up with a nice enhancement.
I ran across this site for creating attractive online resumes: Resolio. I started using it and noticed that they’re using my tabber script in their interface. I’m also using tabber in a major project at work - it’s a great way to get a quick interface going without any effort.
I finally got around to installing Ubuntu Linux on Kirsten’s old PC. The old PC had struggled to run Windows XP, but it seems pretty zippy with Linux. I have it set up on my desk: two monitors for my Windows PC, and a third for the Linux box. Now I’m trying to get Synergy working so I can use a single mouse/keyboard to span all three monitors. It will be good to get back into a real OS after slumming in Windows for so long.
Speaking of a real OS, I moved Kirsten to a nice iMac last year, with mixed results. The mouse that they ship with these things is absolutely horrible. She had a heck of a time trying to burn some music to a CD (iTunes is pretty unintuitive in that regard: you can’t just select some songs and burn a CD, you have to select the songs, create a playlist, then burn the playlist to a CD). Also, the kids use her computer, and there are just certain things and websites that won’t run on a Mac, so she occassionaly comes down to the basement to use my Windows PC.
In any case, I’m hoping to get a MacBook when they make their next revision, which will hopefully contain the new Santa Rosa chipset and LED backlit monitor.
A user of my tabber script discovered that when his tab headings had an ampersand character like this:
<h2>Me & My Shadow</h2>
Then the tab control displayed “&” instead of a single ampersand character.
It looks like this occurs because the JavaScript DOM function document.createTextNode() does not convert entities. However, it looks like innerHTML does convert entities, so to fix your problem find the following line in tabber.js:
DOM_a.appendChild(document.createTextNode(t.headingText));
and replace with the following:
DOM_a.innerHTML = t.headingText;
I’ll think about this some more and if I can’t find any bad side effects I’ll add to the tabber code.

I just released a new version of my JavaScript tab interface software.

Now with yummy cookies!
I added an example page showing how you can use the new onLoad and onClick function hooks in my JavaScript tabifier to make the tabs persistent (using browser cookies).
That is, if you leave the page and come back later, the tab you previously selected will still be selected.

I just released a new version of my JavaScript tab interface software.

Here’s an interactive tutorial I’m working on:
Learn CSS Positioning in ten steps
I’m using it to give some CSS and HTML training today. It uses a customized version of my JavaScript tabs interface and triggers a styleswitcher each time you switch tabs, so you can see the CSS change right on the page.
It’s a work in progress, so let me know if you have any suggestions.

I just released a new version of my JavaScript tab interface software. It has some new features that make it crazy-easy to use, plus I eliminated a memory leak in the IE browser (damn you Microsoft!).