Windows 8 Sucks Big Fat Hairy Ones…

Just bought a new laptop with Windows 8 on. Unless you are less than 6 years old, don’t bother! How could they get it so wrong? It is the most annoying and useless operating system I’ve ever come across, and as soon as I get time, I’m uninstalling it and going for Linux.

Seriously unimpressed!

New Hogsmill CMS Site

A new Hogsmill CMS site went live this week – Barford. This is a site for a London Bridge based video production company, and features cross-browser, CMS-controlled video galleries.

Go and have a look – we’re quite proud of it…

Best Tribute Band Names Ever?

I thought By Jovi was my favourite tribute band name ever, until I saw Toots’n’Skamen – inspired 🙂

jQuery Selectors Not Working in IE8

Just taken us all morning to track down a bug that only happened in IE8. Turns out that selectors on hrefs don’t work in IE8, so these don’t work:


$('a href="#anchor"]')
$('a href$="#anchor"]')

We tried the latter to get round the issue reported in this post, but no luck.

Looking to upgrade all the code to jQuery 1.7.1 this afternoon, so will let you know if this fixes it.

Setting the Focus at the end of a Text Input Field

Here’s a nice obscure one I found recently. To set the focus at the end of a Text Input Field, try this:
var val = $(elem).val()
$(elem).focus().val('').val(val)

Looks a bit strange, but you need all those bits to get it working cross-browser!…

Great New Pages on Sky Web Site


We’re heavily involved in the development of the new SKY TV web site at the mo’. The new TV Guide has been live for a while, and is well handy if you want to record stuff when you’re at work. New show pages have just been completed, for instance NFL At Wembley.

Looking good!

I knew IE was pants, but this is ridiculous…

Have you ever noticed that you get a little ‘broken page’ icon in the address bar of some sites in Internet Explorer? This basically means that IE can’t understand the HTML you’ve given it (even though it may well be valid W3C HTML!), so it goes into something called ‘Quirks Mode’, potentially making the site look pony.

If you see this, hit F12, and you’ll see what browser mode, and document mode, IE is running in. On a recent high profile site we worked on recently, if you ran the site in IE9, the browser went into IE9 browser mode, but IE8 document mode. This means IE9 is emulating an IE8 browser. Now the site looks fine in IE8, but IE9’s emulation of IE means it ignored loads of thing, and the site looked absolutely awful.

Now, there is an alleged fix – use the meta-http-equiv meta tag. Like this:

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

…which is a bit rubbish to start with. It tells IE to use the latest document mode – er, itself, in this case – pretty pointless?

Now, this doesn’t necessarily work, but it’s worth than that. For us, it worked on our internal network, but not externally! How mental is that? (there is something on the Microsoft web site about it behaving differently on intranets, but I’d wasted too many days trying to solve the issue by then to have time to read it…)

After much pain, we discovered that the reason IE9 in IE8 document mode didn’t work is that it didn’t understand all the new HTML5 constructs we were using – header, article, section, aside, etc. Changing all these to CSS-classed divs solved the issue. IE8, of course was fine!

So, well done Microsoft – we try and build semantic mark up, and use the latest technology, and have to take it all out so that your latest browser can render our site.Maybe we should re-build it all in tables just to be sure!

 

Web Design Breakdown

Not sure this even needs explaining. Enjoy 🙂

I never knew that! No. 2

I never knew you could import a PDF into GIMP, and save each page as a seperate image! Cool…

Great-looking Web Fonts Made Easy!


I’ve just discovered the Google Fonts API – how cool! No longer will be tied to half a dozen boring fonts when we need dynamic text! No more creating a new image using GIMP or Photoshop every time we need to add a page heading. Here’s an example I knocked up in about 5 minutes:

http://hogsmill.com/googlefonts.html

Everythign opn this page is just HTML and CSS! No images, and no browser-spcicif loaded fonts. Cool, huh? I love it!…