Archive for October, 2007

IE 7 free to download without Windows Genuine Advantage (WGA) authentication

5

Oct
08

Microsoft has announced they will now allow users free access to download Internet Explorer 7 WITHOUT Windows Genuine Advantage (WGA) authentication.

Steve Reynolds (Program Manager) stated "with today’s ‘Installation and Availability Update,’ Internet Explorer 7 installation will no longer require Windows Genuine Advantage validation and will be available to all Windows XP users."

This is a big step for IE 7 as it pushes to become the worlds most used browser.  With this news it will not be too long until its superiority will be unsurpassed, so expect the usage statistics to pick up dramatically.

For more information on the new release of Internet Explorer 7 and its latest updates have a look at the IEBlog.  If you wish to download Internet Explorer 7 you can do so at the IE 7 download page.

Script of the week

13

Oct
04

It’s been a while since I last posted a script of the week, however, as soon as I found this script I knew I had to put it on my site.  Well this week it is a script called LightWindow that claims the prize.  Before you all moan at yet another light-’whatever’ as it is so well put on the LightWindow site please read on as this one is really worth a look.

Now I have seen a lot of LightBox esq effects out there but this one wins the prize. Not for aesthetics as on that front it is just the same as the others, however, if you look at the media types that LightWindow is compatible with you gain an understanding as to why exactly it is that this script is so impressive (In fact LightWindow claims to support every media type). Couple this with superior Browser compatibility and the sheer versatility and flexibility and you have a winning package.

The code is slightly heavy at 63KB and when taking in to account that it also uses Prototype and Script.aculo.us you can gather that it is a big bit of kit, however, the scalability of this code leads me to believe it is totally worth it.

Finally the list of features that LightWindow offers is phenomenal and well worth a browse. Have a look for your self at the LightWindow feature list.

YAML a HTML/CSS Template Builder

8

Oct
04

I was recently pointed in the direction of a very cool online app called YAML ("Yet Another Multicolumn Layout") Builder. It’s an online HTML template builder and I have to say it looks pretty good.

Now as I am working on a template builder myself I thought a good place to start would be by reviewing the YAML builder and to decipher the positives and negatives of the application. So here we go:

aesthetics

It has to be said the builder is very aesthetically pleasing with a simple yet satisfying design and very powerful interactive features allowing drag and drop components to help build the template as required.

level of detail

The level of detail at which you can manipulate your desired template is relatively high, however, if your looking to create a very complex template this builder is not for you. Allowing only 0, 2 or 3 column layouts can be quite restrictive although it does allow you to add “column sets” to each column to produce a more precise layout, however, this is not always practical.

The ability to add padded content boxes, content elements (such as h1, h2, p, line, ul) and column sets really enhances the template builders appeal and definitely offers novice template builders a firm foundation from which they can build.

The level at which column and site widths can be edited also works very nicely. The ability to set max and min widths, re-order columns and change the individual column widths add for a satisfying effect.

conclusion

It has to be said the YAML builder is well worth a look to see if it meets your needs. More complex layouts may be a bridge too far for this builder, but I believe with a little extra development this app could be formidable. It does have a very strong foundation, but I would like to see it support more columns and the integration of rows as well. Then there is always the prospect of equal height columns to take it in to the exceptional bracket.

A lot to think about when considering my own template builder, but I can definitely use this as a firm benchmark from which I can weigh my own efforts against.

update

I have just received an email from Dirk Jesse (YAML Builder Developer) and he added the following to my review with regards to the level of complexity:

"Check out the Subtemplates in the "Add Elements" section. These offer much higher flexibility (eg. columns and rows) and can be combined with the exisiting columns. You can also remove all columns and creatve your layout only with the subtemplates. They even can be nested. So, rather complex layouts are possible too."

Well I think that just about caps it off.  What an awesome app.  If anyone uses it let me know how you get on.

Simple JavaScript Idle State using Prototype

7

Oct
03

This is a fairly simple piece of code, however, I decided it was worth putting up on the site for everybody to see.

Anyway the code itself aims to fire a function when there has been no mouse movement for a predefined length of time and reset the count every time the mouse is moved.

code

The code is very simple, therefore, only the JavaScript is worth talking about for this example, so that is going to be the focus of this article.  Have a look for yourself below.

Right then here we go:

JavaScript

var idleTime    = 5000;
var timeOut     = ”;

function init() {
    
    Event.observe(document.body, ‘mousemove’, resetIdle, true);
   
    setIdle();
   
}

function onIdleFunction(){
   
    alert(‘Your browser has been idle for ‘ + (idleTime/1000) +’ seconds.’);
       
}

function resetIdle(){
   
    window.clearTimeout( timeOut );
    setIdle();
   
}

function setIdle(){
   
    timeOut = window.setTimeout( "onIdleFunction()", idleTime );
   
}

Event.observe(window, ‘load’, init, false);

At the top of the code there is a variable called "idleTime", this variable sets the idle state time (in milliseconds) that the browser mouse be idble for, before firing the function.  Change this as you wish.

Next we have the "init" function which is called on page load by an event listener at the bottom of the sample code.  This itself sets a mouse move event listener (which resets the idle state when fired) on the document body and also calls the idle state function.

We then have an "onIdleFunction" which is where you put the code you wish to be fired when the page is idle.  In this example we’re just alerting out that the page has been idle.

Finally we have two functions, resetIdle and setIdle, which really do exactly what it says on the tin.  The first resets the idle state (on mouse movement) and the second sets the idle state.

Well that’s about it so have a look for yourself at the demo and code below.

demo

Feel free to view the Simple JavaScript Idle State using Prototype Demo.

download

Also please have a look at the Simple JavaScript Idle State using Prototype Code.

note

The Idle State at present only uses mouse movement for detect inactivity.  This will be problematic when considering devices that do not have mice (as it will not work), however, the code can be easily adapted to check for other forms of activity.

It is also worth while mentioning that the mouse move event is applied to the document body and therefore you must make sure that the height and width of the body and html are set to 100% for this to work, otherwise the event listener will not work.

New site design

1

Oct
02

Well sorry it’s been a while since my last post but between going on holiday and a new site design (as well as many other things) it’s been pretty hectic.

Anyway I have changed the design and layout of my site slightly to (hopefully) make it easier to navigate around this site and find all the wonderful content that you are looking for.

Let me know what you think and of any bugs that you may find (of which I’m sure there are plenty) and I’ll have some new content up in the next few days.