Category: Tech

  • BBC Homepage Beta Using jQuery

    The BBC Beta Homepage is using jQuery, but unfortunately it’s ugly. I should qualify that – I think it’s a good move to make the homepage more personalisable, but does it have to look so Web2.0? Big text was a fad a year ago, but it’s too informal for an internationally recognised and respected news…

  • BT (‘British’ Tele-extortion) Woes

    BT have me in a head-lock. I get my phone and broadband service from them, and am charged, on average, £30 per month. This is not overly excessive, but I wanted to reduce it somehow, since I’ve been made better offers by Virgin Media. After digging through the website after looking at my online (paperfree)…

  • 3 / Skype Marketing Technique

    I was recently contacted by Matt of 3mobilebuzz.com and offered the chance to trial a pair of 3 (the network) Skype (the VoIP company) mobile phones (3skypephone.com) for a month. (No obligation to do anything, other than the mention of returning them after a month.) I thought it was an interesting marketing ploy – it…

  • JavaScript Bug – Modulo of small numbers

    It seems that there is a problem with the modulo function, ‘%’, in JavaScript. For example: 10 % 0.1 should equate to zero but comes out as 0.09999999999999945 probably due to some internal floating-point rounding errors. Easy solution (a hack really): Multiply both numbers by 1000 before using the modulo function.

  • Recursive Moved Itself

    The highly observant amongst you may have noticed that I have moved this blog to my personal domain, jezmckean.com. You should have been brought to this domain automatically, and I hope to fix the multitude of links online, but need the automatic move for those I can’t fix. I’ve done this because I’m working to…

  • IE7 Tip – Reload

    When IE7 was designed they took the peculiar decision to split the navigation buttons into three places (if you include the home button). If you find yourself up in the top left wanting to reload, just click the drop-down button and select the current page (will be highlighted and have a tick-mark on the left),…

  • Firefox Tip

    I discovered yesterday that [tag]bookmarks[/tag] in [tag]Firefox[/tag] can have no name. Seems pointless? Not if the sites have [tag]favicons[/tag]: Space saving, so you can see more, hence fewer clicks. The above are jazzle.co.uk, The Sketchup Components Collection, bit-tech, ebay, amazon, radiotimes.com and the default icon (for a site with no [tag]favicon[/tag]), but you knew that…

  • JS: Clear Default Value onFocus

    Simply add the following to the the onFocus attribute of any HTML form input tag. if (this.value == this.defaultValue) this.value = ”; this.defaultValue is automatically given the value in the HTML.

  • Append to Body onLoad

    I looked for a long time how I could add JavaScript functions to an HTML document’s onLoad attribute. Eventually I found this, something so obvious that I had considered trying it but foolishly didn’t try.

  • jsReq

    I wanted to tell the user that they need JavaScript, but obviously only if they don’t already have it enabled.The following is a very crude script which uses the very fact that JS is available to hide the requirement notice… HTML: JS: