Diary: December 2008

Ho Ho Ho

Slade is playing, the decorations are up for the 10th year in a row, and TCMI is online... it can mean only one thing: it's that magical time of year at radiac.net again!

Read full entry

Building with jQuery, IE and invalid markup

Ran into an interesting problem when using jQuery to generate DOM from markup: make sure your markup is valid, otherwise jQuery's html function will fail silently in Internet Explorer.

A quick and simple illustration with some invalid markup:

$('#content').html('<div>content</div></div>');

Firefox ignores the second div, but IE does not, and causes it to fail. You will instead find that the innerHTML of your #content element is empty.

This won't happen every time, and depends on exactly how your markup is broken; for example, <div><div>content</div> is also wrong, but will not cause ...

Read full entry

Rubbish Bin Ettiquette

It has come to my attention that it has literally been months since I last wrote about anything that is of no consequence. I shall therefore correct this oversight immediately.

Since I last wrote about rubbish, there have been startling developments here at Radiac Towers regarding our bins - we now have a rota. We stopped doing the bins about a year ago, mostly because someone has taken to putting them out the morning before, 24 hours in advance. The council can fine you if you put it out before 6pm, so we're not in a hurry to compete for ...

Read full entry