Archive for the 'javascript' Category

Reliably attaching CSS
Wednesday, December 6th, 2006

In response to PPK’s 24 ways article I thought I should describe the method I currently choose employ to hide elements onload. I have gone through this briefly in my article ‘releasing the permalink slideshow‘. As PPK mentioned, it is important to hide elements not needed for browsers that don’t support JavaScript. The most important [...]

Using hasLayout to fix bugs in IE
Saturday, December 2nd, 2006

Recently at work I came across a particularly tricky IE bug that I have seen a couple times now. I thought I would share the solution since it wasn’t immediately obvious.
On the new Business in the community site (just launched by Torchbox) there is a timeline facility to show information about different events in Business, [...]

The continued adventures of the Permalink slideshow
Sunday, November 19th, 2006

In implementing the permalink slideshow for a few projects at work, it is now improved and a lot easier to set up. You can find the most recent version of the code here: http://natbat.net/code/clientside/js/permalinkSlideshow/slideshow.js (working example)
The idea now is that if you just follow a simple structure for your html, and create an additional stylesheet [...]

Nearly there with the ‘permalink-slideshow’
Friday, February 24th, 2006

Well at the risk of too many entries on this permalink-slideshow, here goes another. I have always wanted (since i lost my fear of JavaScript) something that i can cut my teeth on so to speak. A medium-ly complex project to do in JavaScript that I can have fun playing around with, and more importantly [...]

Fixing a few JavaScript slideshow loose ends
Thursday, February 23rd, 2006

As pointed out by Jeremy, my linkable slideshow (v2) needed some work to fix the load order of the page without altering the ‘unobtrusiveness’ of its behaviour.
I opted for Jeremy’s second method; not waiting for the page to load, instead hiding the images and sorting things out later on. Since the slideshow already relied on [...]

JavaScript slideshow fun
Wednesday, February 22nd, 2006

There are things that go smoothly, run like a dream and never complain; there are others that don’t. For me, debugging JavaScript is always one the latter.
I have only recently begun to appreciate the power and fun to be had hacking at javascript, I used to panic at the thought of it. This was until [...]