Best Practice: JavaScript Window onLoad usage and event handelers setup

Handy Copy & Paste window.onload and event hanelers setup snippet: <script type=”text/javascript”> var temp_f; if( window.onload ) { temp_f = window.onload; } window.onload = function () { if( temp_f ) { temp_f(); } init(); } function init(){ initPageEvents(); } function initPageEvents(){ document.getElementById(‘linkClick’).onclick=function(){ linkClicked(); } } function linkClicked(){ alert(“ok”); } </script> [..] <a href=”#” id=”linkClick”>Link</a>

Sanity.com.au Site Launch

Today we rolled out the new version of the Sanity Australia web site. Several months of blood, sweat and late nights went into this one. It’s a major e-commerce site built for Australias biggest music and dvd retailer. I was responsible for the front-end development and .NET integration. Take a look at: http://www.sanity.com.au

Sanity.com.au Build Preview

This is the new Sanity.com.au revamp I am presently working on. Being a large consumer site I built the site with all best practice and progressive enhancement techniques available. Site Preview: http://www.scottking.com.au/portfolio/sanity.com.au/ Themed version: http://www.scottking.com.au/portfolio/sanity.com.au/index_batman.html Technology: xHTML 1.0 Strict Custom Styled Form Elements sIfr Flash Font Replacement jQuery Animation swfObject Flash Embed CSS class based…

BT Super for Life

This is a web site I developed for financial service provider BT Financial Group (part of Westpac), quite a nice looking site, features lots of SEO, a dynamic Flash intro panel with full CMS. A nice group to work for and a good job all around. Technologies: Flash ActionScript 3 CSS JavaScript Classic ASP Advanced…

Quitnow Site Launch

This site I built for the Australian Government, I was given the requirment that the site would have to be built on top of a Lotus Notes CMS. For this reason alone I decided to absolutely separate the presentation layer into pure CSS and just have the Notes CMS server the content DIV’s. It worked…

My first Google Desktop Widget

I was asked to develop a Google Desktop Widget for Peugeot that would display the cheapest priced petrol for each state in Australia and which service station to get it from. This involved building a screen reader in PHP to get petrol price data, converting it to an array in order to sort the data…