An Equally Small Update
Published Thursday, December 20, 2007 in Site News
Ok, another small update here.
I've hijaxed the "Comments"-links in the article listing (which you already know if you read my post it). I've also animated the hijaxation of the "Contined..."-links. It didn't look good when they weren't animated but the Comments-links were.
I also sorted out a little problem I had with ajax-generated content (from the Continued...-links) containing images and/or code-blocks not getting the functionality that images (imgbox) and code-blocks (+/- buttons) have.
The reason is because imgbox() as well as the code-blocks' functionality is run onDomReady. If content is added after DomReady that content will obviously not be affected by what was run before.
I had to rewrite a couple of my functions so they could be run on a specific div (rather than the body-element) (just added a parent-parameter to all of them) and I now run them on the div with the newly added content.
I had to do this so that clicking "Continued..." would not make the "View/Hide comments" stop working.
I think it turned out quite cool in the end.
I've also removed an old blog-post called "My Travels" and moved that information to my about-page.
Under the "About Me"-section there's a new section called "My Travels". I've marked every location up with microformats (well, geo-data at least) and I use Javascript to display a Yahoo! Map with all the locations plotted on the map.
This was discussed in the 24 ways article Unobtrusively Mapping Microformats with jQuery by Simon Willison, but I actually did exactly this a couple of months ago for a project at work :)
I'll be writing something proper soon hopefully, it's just that I enjoy working on the site more than I do writing :P
Latersss
Oh, and Merry Christmas and a Happy New Year! (cus I probably won't write anything 'til next year!).





