IE8 In Private Beta

Posted on Tuesday, February 26th, 2008

Quick bit of news today, Internet Explorer 8 beta 1 has been released to a select few for testing. I wonder whether, as some suggested, the version targeting has been left out at this stage. Then again, I also wonder what it looks like, what it feels like to use, how much of an improvement it is in terms of CSS and JavaScript and how much better it is than IE7. I would love to have an early look! Apparently there will be a public beta soon and we can look forward to demonstrations at the upcoming Mix 08, but who wants to wait?

So, if anyone’s listening in Microsoft, I’d love to see your new browser!

IE6 Gets Its Coat? What Are Your Stats?

Posted on Thursday, February 21st, 2008

As the dust takes a long time to settle after the recent discussions over the version targeting in Internet Explorer 8 we seem to be living in the future. Tim at CSS Karma made an interesting observation over the market share IE6 and 7 have at the moment.

IE7 Surges Forward

His stats from the North Carolina State University Blackboard login page show that IE7 has taken over as the dominant browser from IE6. Up until now I had assumed that the two were fighting it out quite evenly, but here was some evidence that IE7 is finally starting to win. I checked my stats and the recent trend showed that IE7 was also in the lead.

Maybe this is due to Microsoft opening IE7 up to all Windows users (i.e. including those who didn’t pay for it, if you know what I mean) by removing the Windows Genuine Advantage check back in October last year. Maybe the recent second round of automatic updates pushing IE7 out again are helping (though it’s interesting to note that Microsoft still feel like they have to provide escape mechanisms for those who insist on sticking with IE6, another argument for version targeting perhaps).

Lies, Damn Lies and Statistics

Of course, Tim’s stats come mainly from young, tech savvy students and mine are most likely interested in web development and this skews the figures somewhat. Plus, the only browser usage stats that matter to your site are the ones for your users. But I’m interested anyway, so what are the trends on your site/blog? Have you seen IE7 taking a larger slice of the pie? Is IE6 still holding strong? Is Firefox beating both of them (it is here)? Drop me a comment and let’s see if this trend is for real.

Finally! An Upgrade To WordPress 2.3(.3)

Posted on Saturday, February 16th, 2008

It has finally happened, I got over myself and upgraded my old, so very old, version 2.2 WordPress. The longer it got, the more I didn’t want to do it, but as the days ticked over on my dashboard since the last release and talk of the upcoming version 2.5 started, I decided that I had to bite the bullet and just do it.

So I started myself a test server on my home desktop, installed WordPress 2.2, imported my blog and my theme and did a test run. This seemed to go well. Then I backed everything up, twice. Finally, after waiting and biting my nails for a couple of days, I went for it and now you can see the result. My theme works, I imported tags from Ultimate Tag Warrior and they seem to have worked, I upgraded a bunch of plugins and they seemed to work. Everything was happy.

Then I went to write a post and panicked! I knew that in the database some tables had changed, but when I got a message telling me, “[Table 'wordpress.wp_post2cat' doesn't exist]” I scared myself and started thinking about all those backups I made. Thankfully this support thread helped me out straight away, since it turns out I hadn’t upgraded enough plugins.

If you do see any strange behaviour from this blog, do please let me know so that I can sort it as soon as possible. In the meantime you can carry on looking forward to an upcoming redesign to go with the new version, including tags and everything available with my new WordPress 2.3.3.

IE6 Doesn’t Hide When Overflow Is Hidden

Posted on Tuesday, February 12th, 2008

A little CSS bug that affected me twice recently. I had to create a news ticker (so 1990s, but not my design) and an image slider, both which did the same thing; moving information from one side of the screen to the other. The important part was, at some point the news or the images would disappear, seemngly sliding underneath the next part of the page. Of course, this worked in all browsers but every developer’s favourite, Internet Explorer 6. Let me explain why this was happened and what I did to fix it.

The Problem: Position Relative

In order to create the effect of moving both the news ticker and the images, I set up something like the following:

<div id="slide_frame">
<ul>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
<li>Item four</li>
<li>Item five</li>
</ul>
</div>

With the following CSS:

#slide_frame { width:300px; }
#slide_frame ul {
list-style-type:none; position:relative; width:600px;
}
#slide_frame li { float:left; padding:0 5px; }

The sliding was done with JavaScript, jQuery, which I am falling in love with, as it happens, and the result was fine in all browsers but IE6 where both the news ticker and the image slider remained visible at all times.

The issue, it seems, comes down to the <ul> being positioned relatively, which had to be done, so that the JavaScript could move it about. Removing the position hid the out of shot part of the list but meant it wouldn’t move anywhere.

The Solution: Position Relative

Thankfully, this turned out to be an easy fix! In order to make IE6 behave all you need to do is apply position:relative to the containing <div> as well. Don’t go around playing with z-indexes like I did for half an hour anyway!

I have provided an example of the problem, with the fix to show what should be happening. Interesting point for those of you with many, many versions of Internet Explorer at your disposal, IE5 and 5.5 are not affected by this issue.

So, don’t get caught out by hidden overflow and relative positions again, just position your container relatively too!

The JavaScript Library Trap

Posted on Thursday, February 7th, 2008

Recently I used a couple of JavaScript frameworks for the first time. Previously I have been trying to understand the JavaScript that underpins all the available libraries along with the fights to get different browsers to behave the same way. I never planned to use a library until I fully understood what was going on, but a project at work was kicked off with jQuery and I was left to discover how easy it all was by myself. Then, a couple of weeks later, a JavaScript course paid heavy attention to Prototype. The ease of slipping into using either of these libraries got me thinking.

Falling In Love… With A Library

I’ve been using it for no more than two weeks and jQuery feels like a hammer, all my JavaScript problems look like nails. My problem is that I know I shouldn’t be falling for just the one library, but I don’t know where else to look! I read through Jonathan Snook’s slides from Web Directions North 08 on workin with AJAX frameworks and I am waiting for the podcast for greater detail.

What I really want to know is, what is the best way not to fall into the JavaScript library trap? If you use libraries, which ones do you use and how do you decide? How do you decide when not to use one too, as that is all important? And finally, do you have your own library of your own utility functions?

I hope you can help me out with your experience.